Devices
Revoke All Devices
Revoke access for all devices except the current one, effectively logging out all other sessions
POST
This endpoint requires authentication. Include the JWT access token in the Authorization header.
Response
A successful request returns HTTP 204 No Content status. The following actions are performed:- The current device’s token is preserved
- All other refresh tokens are blacklisted
- All associated access tokens are blacklisted
- The blacklisted tokens are removed from the database
Error Responses
Error details when the request fails
Common error cases:
- 401 Unauthorized: Missing or invalid access token
- 500 Internal Server Error: Invalid user ID in token
