Interface SessionOptions

Options for creating a new Session.

interface SessionOptions {
    audience: string;
    scopes: string[];
    ttl: number;
    sessionId?: string;
}

Properties

audience: string

The intended audience (recipient) of this session.

scopes: string[]

Permission scopes granted in this session (e.g., ['read', 'write']).

ttl: number

Time-to-live in seconds.

sessionId?: string

Optional unique session identifier, used for revocation. If not provided, a random UUID is generated.