Skip to main content
End the authenticated session by revoking the refresh token on the server. After a successful logout, the provided refresh token can no longer be used to issue new access tokens.

Request

POST /auth/logout
string
The refresh token to revoke. Technically optional, but omitting it leaves the token active on the server.

Response

string
Returns "Logged out." regardless of whether a token was provided.

Example

Always include the refreshToken in the request body. Without it, the server returns a 200 but the token remains valid and could still be used to generate new access tokens until it expires naturally.

Error codes