Logout: revoke refresh tokens

There are two parts to logging out:

  1. Revoke the refresh token
  2. Forget the access token

Use this endpoint to sign a user out directly from your application, such as a mobile app. It revokes the authenticated user’s refresh tokens. Add logoutAll=true as a query parameter to revoke refresh tokens for all of the user’s sessions, for example behind a "Sign out of all devices" control.

  • By default, only the refresh tokens tied to the session in the access token are revoked. Other sessions stay signed in.
  • Logout does not invalidate access tokens already issued. They remain valid until they expire, so keep their lifetime short and discard them on the client upon logout.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
boolean
Defaults to false

If true, revokes all of the user’s refresh tokens for the client defined in the JWT

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json