@auth0/auth0-server-js 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/index.cjs +384 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +143 -8
- package/dist/index.d.ts +143 -8
- package/dist/index.js +378 -53
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,7 +49,8 @@ const auth0 = new ServerClient<StoreOptions>({
|
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
The `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET` can be obtained from the [Auth0 Dashboard](https://manage.auth0.com) once you've created an application. **This application must be a `Regular Web Application`**.
|
|
52
|
-
The `AUTH0_REDIRECT_URI` is needed to tell Auth0 what URL to redirect back to after
|
|
52
|
+
The `AUTH0_REDIRECT_URI` is needed to tell Auth0 what URL to redirect back to after successful authentication, e.g. `http://localhost:3000/auth/callback`. Your application needs to handle this endpoint and call the SDK's `completeInteractiveLogin(url: string)` to finish the authentication process. See below for more information.
|
|
53
|
+
|
|
53
54
|
|
|
54
55
|
### 3. Configuring the Store
|
|
55
56
|
|
|
@@ -200,6 +201,10 @@ const auth0 = new ServerClient<StoreOptions>({
|
|
|
200
201
|
});
|
|
201
202
|
```
|
|
202
203
|
|
|
204
|
+
The `redirect_uri` must be an absolute URL.
|
|
205
|
+
|
|
206
|
+
If you need to compute an absolute redirect URI per request (for example, in multi-domain deployments), pass `authorizationParams.redirect_uri` to `startInteractiveLogin` to override the configured default.
|
|
207
|
+
|
|
203
208
|
> [!IMPORTANT]
|
|
204
209
|
> You will need to register the `AUTH0_REDIRECT_URI` in your Auth0 Application as an **Allowed Callback URLs** via the [Auth0 Dashboard](https://manage.auth0.com):
|
|
205
210
|
|