Skip to main content
POST
https://api.tktchurch.com/v1
/
auth
/
devices
/
revoke-all
curl -X POST "https://api.tktchurch.com/v1/auth/devices/revoke-all" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
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:
  1. The current device’s token is preserved
  2. All other refresh tokens are blacklisted
  3. All associated access tokens are blacklisted
  4. The blacklisted tokens are removed from the database

Error Responses

error
object
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
curl -X POST "https://api.tktchurch.com/v1/auth/devices/revoke-all" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."