Authentication
Refresh Token
Changed onRefresh 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
- Base URLhttps://api.privacypal.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"token": "eyJhbGciOiJIUzI1NiIs..."
}Response
Token refreshed
Example response
{
"code": 200
}Changes
- info
endpoint added
- info