Generates a new access token using a valid refresh token without requiring the user to log in again. This endpoint is used to maintain authenticated sessions securely after the access token expires.The server validates the provided refresh token, checks whether it is active, unexpired, and not revoked, then issues a new access token.If the refresh token is invalid, expired, revoked, or associated with a terminated session, the request is rejected and the user must authenticate again using the login endpoint.
Request
Cookie Params
Responses
🟢200Success
application/json
Bodyapplication/json
🟠401 Refresh Token Missing
🟠401Refresh Token Invalid or Malformed
🟠401Refresh Token Expired
🟠401Session Revoked
🟠429Rate Limit Exceeded
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://localhost:3000/api/v1/auth/refresh-token' \
--header'Cookie: rt='