Revokes an existing bearer token. The request must include valid credentials in the body and a valid Bearer token in the header.
test@example.com
password
POST /auth/revoke HTTP/1.1 Host: 127.0.0.1:8080 Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* Content-Length: 50 { "email": "test@example.com", "password": "password" }
Token revoked successfully
No content