Endpoint
Request body
The refresh token previously issued by
POST /auth/login, POST /auth/refresh, or POST /auth/verify-email. Each refresh token can only be used once.Response
HTTP200 OK on success.
Example
Token rotation
Every successful call to this endpoint invalidates the refresh token you submitted and replaces it with a brand-new one. You must update your stored refresh token after every rotation. If the same refresh token is used twice — for example because an attacker replayed a captured token — the second attempt returns401 TOKEN_REVOKED. At that point you should treat the session as compromised, clear all stored tokens, and require the user to log in again.
Refresh tokens are also invalidated when you:
- Call
POST /auth/logout - Change your password via
PATCH /auth/me/password