Revoke all user tokens and refresh tokens immediately

POST /api/v2/revoke

Revoke all user tokens and refresh tokens immediately. Pass a currently valid token through the Authentication header to revoke your user.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
POST /api/v2/revoke
curl \
 --request POST 'https://api.hcgateway.shuchir.dev/api/v2/revoke' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "message": "string"
}