Skip to main content
POST
Request New Access Token
Request a new access token using a valid refresh token. The refresh token can be sent in the request body or as an HttpOnly cookie.

Headers

Can include replyke-refresh-jwt cookie with the refresh token

Body Parameters

refreshToken
string
JWT refresh token (optional if provided via cookie). Cookie takes precedence if both are provided.

Response

success
boolean
Indicates whether the token refresh was successful
accessToken
string
New JWT access token (null if no refresh token provided)
user
User Object
Current user object (null if no refresh token provided)

Error Responses


Notes

  • The replyke-refresh-jwt cookie takes precedence if both are provided.
  • Returns null tokens and user object if no token is supplied.