/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
Property | Type | Description |
---|---|---|
loggedOut | boolean | true 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?!
/api/auth/login
Authenticate a user and register a session.
/api/auth/register
Register a new user account and log them in. Works with invites.
Last updated: 5/28/2025
Edit this page on GitHub