@health-samurai/aidbox-client
    Preparing search index...

    Type Alias SmartSession<TUser>

    The session established after a successful SMART App Launch.

    Hosts persist this object in their session store (cookie session, Redis, etc.). accessToken is always present; expiresAt is an absolute Unix timestamp in milliseconds, computed locally on receipt. Confidential client secrets are intentionally not stored here — supply them separately when refreshing or revoking.

    type SmartSession<TUser = UserInfo> = {
        serverUrl: string;
        clientId: string;
        tokenUri: string;
        revocationUri?: string;
        usesClientSecret?: true;
        accessToken: string;
        refreshToken?: string;
        expiresAt?: number;
        scope?: string;
        patient?: string;
        encounter?: string;
        idToken?: string;
        userinfo?: TUser;
    }

    Type Parameters

    Index

    Properties

    serverUrl: string
    clientId: string
    tokenUri: string
    revocationUri?: string
    usesClientSecret?: true
    accessToken: string
    refreshToken?: string
    expiresAt?: number
    scope?: string
    patient?: string
    encounter?: string
    idToken?: string
    userinfo?: TUser