Skip to content

Commit a251166

Browse files
authored
add a next step for providing custom tokens (#7818)
1 parent 3e98597 commit a251166

File tree

1 file changed

+16
-4
lines changed
  • src/pages/[platform]/build-a-backend/auth/concepts/tokens-and-credentials

1 file changed

+16
-4
lines changed

src/pages/[platform]/build-a-backend/auth/concepts/tokens-and-credentials/index.mdx

+16-4
Original file line numberDiff line numberDiff line change
@@ -253,23 +253,35 @@ class InMemoryStorage implements SecureStorageInterface {
253253
</InlineFilter>
254254

255255
## Token Revocation
256+
256257
<InlineFilter filters={["angular", "javascript", "nextjs", "react", "vue", "android"]}>
258+
257259
Token revocation is enabled automatically in Amplify Auth. To revoke tokens you can set up global sign-out with `signOut({ global: true })` to globally sign out your user from all of their devices.
258-
</InlineFilter>
259260

261+
</InlineFilter>
260262
<InlineFilter filters={["flutter"]}>
263+
261264
Token revocation is enabled automatically in Amplify Auth. To revoke tokens you can invoke `await Amplify.Auth.signOut(options: const signOutOptions(globalSignOut: true))` to globally sign out your user from all of their devices.
262-
</InlineFilter>
263265

266+
</InlineFilter>
264267
<InlineFilter filters={["swift"]}>
268+
265269
Token revocation is enabled automatically in Amplify Auth. To revoke tokens you can invoke `await Amplify.Auth.signOut(options: .init(globalSignOut: true))` to globally sign out your user from all of their devices.
266-
</InlineFilter>
267270

271+
</InlineFilter>
268272

269273
## Next steps
270274

271-
- [Learn how to customize the ID token](/[platform]/build-a-backend/functions/examples/override-token/)
272275
<InlineFilter filters={["javascript","nextjs","angular","vue","react","react-native"]}>
276+
277+
- [Learn how to customize the ID token](/[platform]/build-a-backend/functions/examples/override-token/)
278+
- [Learn how to bring your own tokens from external providers](/[platform]/build-a-backend/auth/advanced-workflows/#custom-token-providers)
273279
- [Learn how to use cookie storage server-side](/[platform]/build-a-backend/server-side-rendering/#configure-amplify-library-for-client-side-usage)
280+
274281
</InlineFilter>
282+
<InlineFilter filters={["android", "swift", "flutter"]}>
283+
284+
- [Learn how to customize the ID token](/[platform]/build-a-backend/functions/examples/override-token/)
285+
- [Learn how to bring your own tokens from external providers](/[platform]/build-a-backend/auth/advanced-workflows/#custom-token-providers)
275286

287+
</InlineFilter>

0 commit comments

Comments
 (0)