Check Session JWT
Check session JWT validity endpoint
Endpoint: /user/session/verify
Method: POST
{
sessionJwt: string; // JWT token to verify
}
Session JWTs have an expiration time. Always verify JWTs before using them in critical operations.
Example Usage
const timestamp = Date.now().toString();
const body = {
sessionJwt: 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...' // JWT to verify
};
const hmac = generateHmacSignature(timestamp, body, secretKey);
const response = await axios.post(apiEndpoint + '/user/session/verify', body, {
headers: {
apikey: apiKey,
signature: hmac,
timestamp: timestamp
}
});
Last updated