Logout
POST/v1/auth/logout
Logout
The logout endpoint allows users to log out by invalidating their session cookies (access_token and refresh_token). It checks for the presence of an access_token cookie in the request, adds it to a set of invalid tokens, and returns a 200 status code upon successful logout. If no access_token is found, it responds with a 401 Unauthorized error.
Responses
- 200
- 500
User logged out
Unexpected error, invalid token or no access token found
Loading...