Logout
Logout endpoint documentation
Endpoint: /user/logout
Method: POST
{
sessionJwt: string; // Active session JWT
}
Example Usage
const timestamp = Date.now().toString();
const body = {
sessionJwt: 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...' // Active session JWT
};
const hmac = generateHmacSignature(timestamp, body, secretKey);
const response = await axios.post(apiEndpoint + '/user/logout', body, {
headers: {
apikey: apiKey,
signature: hmac,
timestamp: timestamp
}
});
Always clean up session data in your application after a successful logout.
Last updated