The SessionData interface represents the complete session state for an authenticated user. This includes user profile information, access tokens, and internal session management data.
export interface SessionData { user: User; tokenSet: TokenSet; accessTokens?: AccessTokenSet[]; internal: { // the session ID from the authorization server sid: string; // the time at which the session was created in seconds since epoch createdAt: number; }; connectionTokenSets?: ConnectionTokenSet[]; [key: string]: unknown;}
Array of additional access tokens for different audiences when using Multi-Resource Refresh Tokens (MRRT). Each token is scoped to a specific API audience.
export interface AccessTokenSet { accessToken: string; scope?: string; requestedScope?: string; audience: string; expiresAt: number; // the time at which the access token expires in seconds since epoch token_type?: string; // the type of the access token (e.g., "Bearer", "DPoP")}
Represents an access token for a specific audience in Multi-Resource Refresh Token scenarios.