Check Session JWT

Check session JWT validity endpoint

Verify if a session JWT is valid and get associated user information.

Endpoint: /user/session/verify Method: POST

{
    sessionJwt: string; // JWT token to verify
}

For local JWT verification without making an API call, see the "Verify JWT Locally" documentation.

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