POST /api/auth/logout
Revokes a specific refresh token, preventing it from being used to generate new access tokens. Use this endpoint when a user signs out.
The access token is not invalidated by this endpoint — it will remain valid until it naturally expires. Only the refresh token is revoked.
Authentication
Request body
The refresh token to revoke. This is the token previously issued by
POST /api/auth/login.Response
200 OK
The refresh token has been revoked. Subsequent calls toPOST /api/auth/refresh with this token will return 401.
true on success.Confirmation message.
Error responses
| Status | Description |
|---|---|
400 | refresh_token field is missing from the request body |
401 | Access token is missing or invalid |