Revokes an existing bearer token. The request must include valid credentials in the body and a valid Bearer token in the header.
/auth/revoke
test@example.com
password
Token revoked successfully
An error response object
curl -L \ --request POST \ --url 'http://127.0.0.1:8080/auth/revoke' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{"email":"test@example.com","password":"password"}'
No body