Documentation Index
Fetch the complete documentation index at: https://mintlify.com/eggarcia98/auth-backend/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/v1/auth/refresh
Uses the refreshToken cookie to issue a new access token and refresh token. Both cookies are updated on success.
Request
Cookies
The refresh token stored in the
refreshToken HTTP-only cookie. This is set automatically by the browser after a successful login or previous token refresh.Response
Whether the request succeeded.
Cookies updated
On success, both cookies are replaced with new values:| Cookie | Description |
|---|---|
accessToken | New short-lived JWT. |
refreshToken | New long-lived refresh token. Expires after 7 days. |
Examples
Success response (200)
Errors
| HTTP status | Code | Description |
|---|---|---|
401 | UNAUTHORIZED | The refreshToken cookie is missing, invalid, or expired. The user must log in again. |