Skip to main content

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

User logged out

Loading...