Authentication

Refresh Token

Refresh an expired JWT token to obtain a new one.

SDK Usage:

const refreshResult = await client.refreshUserToken(currentToken);
client.updateApiKey(refreshResult.data.token);
post/api/user/refresh-token

Request body

tokenstring required

The current (expired) JWT token

Example request

{
  "token": "eyJhbGciOiJIUzI1NiIs..."
}

Response

Token refreshed

codeinteger

Example response

{
  "code": 200
}

Changes