You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
10
10
### Fixed
11
11
12
12
- Don't include extra params when calculating local hmac [#196](https://github.com/Shopify/shopify-node-api/pull/196)
13
+
-[Breaking] Change default for OAuth.beginAuth to online sessions [#203](https://github.com/Shopify/shopify-node-api/pull/203)
13
14
-[Breaking] Return and delete session in `validateAuthCallback`[#217](https://github.com/Shopify/shopify-node-api/pull/217)
14
15
-[Breaking] Extract `addHandler` and `getHandler` methods for webhooks out of `register`[#205](https://github.com/Shopify/shopify-node-api/pull/205)
Copy file name to clipboardExpand all lines: docs/usage/oauth.md
+12-9
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,16 @@ To do that, you can follow the steps below.
6
6
7
7
## Add a route to start OAuth
8
8
9
-
The route for starting the OAuth process (in this case `/login`) will use the library's `beginAuth` method. The `beginAuth` method takes in the request and response objects (from the `http` module), along with the target shop _(string)_, redirect route _(string)_, and whether or not you are requesting [online access](https://shopify.dev/concepts/about-apis/authentication#api-access-modes)_(boolean)_. The method will return a URI that will be used for redirecting the user to the Shopify Authentication screen.
9
+
The route for starting the OAuth process (in this case `/login`) will use the library's `beginAuth` method. The method will return a URI that will be used for redirecting the user to the Shopify Authentication screen.
10
+
11
+
| Parameter | Type | Required? | Default Value | Notes |
12
+
| --- | --- | :---: | :---: | --- |
13
+
|`request`|`http.IncomingMessage`| Yes | - | The HTTP Request. |
14
+
|`response`|`http.ServerResponse`| Yes | - | The HTTP Response. |
15
+
|`shop`|`string`| Yes | - | A Shopify domain name in the form `{exampleshop}.myshopify.com`. |
16
+
|`redirectPath`|`string`| Yes | - | The redirect path used for callback with a leading `/`. The route should be allowed under the app settings. |
17
+
|`isOnline`|`bool`| No |`true`|`true` if the session is online and `false` otherwise. |
18
+
10
19
11
20
<details>
12
21
<summary>Node.js</summary>
@@ -17,7 +26,7 @@ The route for starting the OAuth process (in this case `/login`) will use the li
0 commit comments