When the access token expires, use this endpoint to obtain a fresh token pair without requiring the user to log in again. Each call consumes the supplied refresh token and returns a brand-new one — this is called refresh-token rotation. The old token is immediately invalidated after a single successful use. If the service detects that an already-consumed token is being presented again, it treats this as a potential token-theft replay attack and revokes the entire family of tokens derived from the same original login session, forcing the user to re-authenticate.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ricardomb-tech/auth-service/llms.txt
Use this file to discover all available pages before exploring further.
POST /auth/refresh
Authentication: None required — the refresh token itself is the credential.Request Body
The opaque refresh token obtained from
POST /auth/login or a previous call to this endpoint. Must not be blank.Response — 200 OK
The response shape is identical toPOST /auth/login.
A new signed HS256 JWT. TTL: 15 minutes (900 seconds).
A new opaque refresh token. The previously submitted token is now invalid and must not be used again. TTL: 7 days from this response.
Always
"Bearer".Always
900.Error Responses
| Status | Condition |
|---|---|
401 Unauthorized | Token is not recognised, has already been consumed, has expired, or belongs to a revoked family. |
400 Bad Request | The refreshToken field is missing or blank. |