/api/auth/logout

Log out the currently authenticated user and invalidate their current session.

Info

This endpoint requires authentication.

GET
Request

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
loggedOutbooleantrue if logout was successful.

Example

{
"loggedOut": true
}

Any tokens that were used for this session will no longer work, and the session id will be invalidated.

Error Responses

  • 401 Unauthorized

    If the user is not authenticated or the session is invalid. Why are you trying to log out when you aren't even logged in?!



Last updated: 5/28/2025
Edit this page on GitHub