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
Copy file name to clipboardExpand all lines: EXAMPLES.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2302,6 +2302,9 @@ The connect endpoint (`/auth/connect` or your custom path) accepts the following
2302
2302
- `scopes`: (optional) defines the permissions that the client requests from the Identity Provider.. Can be specified as multiple values (e.g., `?scopes=openid&scopes=profile&scopes=email`) or using bracket notation (e.g., `?scopes[]=openid&scopes[]=profile&scopes[]=email`).
2303
2303
- Any additional parameters will be passed as the `authorizationParams` in the call to `/me/v1/connected-accounts/connect`.
2304
2304
2305
+
> [!IMPORTANT]
2306
+
> You must enable `OfflineAccess` from the Connection Permissions settings to be able to use the connection with Connected Accounts.
2307
+
2305
2308
### `onCallback` hook
2306
2309
2307
2310
When a user is redirected back to your application after completing the connected accounts flow, the `onCallback` hook will be called. You can use this hook to run custom logic after the user has connected their account, like so:
@@ -2347,6 +2350,9 @@ export async function GET() {
2347
2350
}
2348
2351
```
2349
2352
2353
+
> [!IMPORTANT]
2354
+
> You must enable `OfflineAccess` from the Connection Permissions settings to be able to use the connection with Connected Accounts.
2355
+
2350
2356
## Back-Channel Logout
2351
2357
2352
2358
The SDK can be configured to listen to [Back-Channel Logout](https://auth0.com/docs/authenticate/login/logout/back-channel-logout) events. By default, a route will be mounted `/auth/backchannel-logout` which will verify the logout token and call the `deleteByLogoutToken` method of your session store implementation to allow you to remove the session.
0 commit comments