cURL
curl --request POST \ --url https://api.example.com/api/logout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "token": "<string>" } '
{ "status": "<string>" }
Logout a user by revoking the token from AWS Cognito
JWT token obtained from AWS Cognito or custom authentication service
Logout request payload
JWT Token
Logout successful
Status message