Endpoint
Request
This endpoint optionally uses therefresh_token cookie if present. No request body is needed.
Response
Success message confirming logout
Success response
refresh_token cookie by setting its Max-Age to 0.
Behavior
- If a refresh token cookie is present, it will be invalidated in the database
- The refresh token cookie is cleared by setting an expired cookie
- The endpoint succeeds even if no refresh token is provided
Example request
-b cookies.txt flag sends the refresh token cookie (if available), and -c cookies.txt saves the cleared cookie.
Status codes
| Code | Description |
|---|---|
| 200 | Logout successful |