Interface AuthState

Resolved authentication state used throughout the client lifecycle. Created once by resolveCredentialChain and passed to resolveAuthHeaders on every request.

interface AuthState {
    accessToken?: string;
    accessTokenProvider?: () => string | Promise<string>;
    accountId?: string;
    apiKey?: string;
    apiKeyHeader: string;
    autoRefresh: boolean;
    configDir?: string;
    fetcher?: FetchLike;
    mode: "apiKey" | "bearerStatic" | "bearerProvider" | "sso";
    ssoProfile?: SsoProfile;
}

Properties

accessToken?: string
accessTokenProvider?: () => string | Promise<string>
accountId?: string
apiKey?: string
apiKeyHeader: string
autoRefresh: boolean
configDir?: string
fetcher?: FetchLike
mode: "apiKey" | "bearerStatic" | "bearerProvider" | "sso"
ssoProfile?: SsoProfile