Skip to main content
Security is the baseline for the Scoutline Legal OS. The Scout Chat SDK requires a valid JWT for every session.

Generating a Session Token

Before initializing the SDK on the client side, your backend must request a session token from the Scoutline Global API using your firm’s secret keys.
// Backend (Node.js)
const token = await scoutline.auth.generateSessionToken({
  matterId: 'matt_123',
  userId: 'user_abc'
});

Token Expiry

Tokens are short-lived (default 1 hour). The SDK will emit a tokenExpired event when a refresh is required.