Skip to main content

Revoke a JWT

POST 

/auth/revoke

Marks the provided JWT as revoked in the database. Once revoked, the token is rejected by all plugin endpoints that check for revocation (autologin, validate, refresh, etc.).

JWT delivery The JWT to revoke can be passed via:

  • JWT field in the request body
  • Authorization: Bearer <token> header (when enabled in plugin General Settings)

Requirements

  • Authentication and token revocation must be enabled in the plugin settings.
  • The calling IP must pass the authentication IP allow-list.
  • The JWT must be valid: signed with the configured key and not expired (an expired JWT answers 400, error_code 14).
  • If "Revoke Token Requires Auth Code" is enabled, AUTH_KEY must be provided.

Side effects All refresh tokens of the user are deleted too. The response can be changed with the simple_jwt_login_response_revoke_token filter.

Request​

Responses​

Token revoked successfully.