Skip to main content

Refresh token

GET 

/v1/auth/exchange-jwt-token

Refresh token

This endpoint allows users to obtain a new JWT access token by providing a valid refresh token. It validates the refresh token, generates a new access token with a 15-minute expiration, retrieves user details from the database, and returns a JSON object containing user session information along with the new access tokens. This endpoint ensures secure authentication by using encrypted cookies and secret keys for token generation and validation.

Responses

User logged in

Schema
    accessToken stringrequired
    createdAt date-timerequired
    device stringrequired
    deviceCreatedAt date-timerequired
    email stringrequired
    hpkePubKey binarynullable
    id uuidrequired
    lastLogin date-timenullable
    lastTransaction date-timenullable
    nickname stringrequired
    refreshToken stringrequired
    status stringrequired
Loading...