Endpoint
Request
This endpoint requires therefresh_token cookie to be sent with the request. No request body is needed.
Response
New JWT access token for authenticating API requests
Success response
refresh_token cookie with the following properties:
- HttpOnly: true (not accessible via JavaScript)
- SameSite: Strict
- Path: /api/auth
- Max-Age: 30 days
- Secure: false (should be true in production)
Error responses
400 Bad Request - Invalid or expired refresh tokenExample request
-b cookies.txt flag sends the saved refresh token cookie, and -c cookies.txt saves the new refresh token.
Status codes
| Code | Description |
|---|---|
| 200 | Token refreshed successfully |
| 400 | Invalid or expired refresh token |
| 401 | Missing refresh token |