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
Example request
{
"token": "eyJhbGciOiJIUzI1NiIs..."
}Response
Token refreshed
Example response
{
"code": 200
}