For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Session JWT Public Key

Get session JWT public key endpoint

Retrieve the public key used to verify session JWTs locally.

Endpoint: /jwt/publicKey Method: GET

{
    publicKey: string; // Base64 encoded public key
}

Example Usage

// Fetch the public key
const response = await axios.get(apiEndpoint + '/jwt/publicKey');
const publicKey = response.data.publicKey;

// Verify a JWT locally
const decodedToken = jwt.verify(token, Buffer.from(publicKey, 'base64').toString('utf-8'), { algorithms: ['ES256'] });

The public key can be used to verify session JWTs locally without making API calls.

Last updated