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

    Type Alias SmartTokenResponse<TUser>

    Token bundle returned by exchangeCode.

    SMART App Launch token responses extend OAuth 2.0 with launch context (patient, encounter, id_token). Aidbox token responses may also include userinfo, containing the Aidbox User resource.

    id_token (when scope includes openid) is not validated by this library — callers that rely on id_token claims for authorization decisions must verify the JWT signature, iss, aud, and exp themselves.

    type SmartTokenResponse<TUser = UserInfo> = {
        access_token: string;
        token_type?: string;
        refresh_token?: string;
        expires_in?: number;
        scope?: string;
        id_token?: string;
        patient?: string;
        encounter?: string;
        userinfo?: TUser;
        [key: string]: unknown;
    }

    Type Parameters

    Indexable

    • [key: string]: unknown
    Index

    Properties

    access_token: string
    token_type?: string
    refresh_token?: string
    expires_in?: number
    scope?: string
    id_token?: string
    patient?: string
    encounter?: string
    userinfo?: TUser