ADK TypeScript Documentation - v0.0.4
    Preparing search index...

    Class OAuth2Credential

    OAuth2 token credential with refresh capability

    Hierarchy (View Summary)

    Index

    Constructors

    • Constructor for OAuth2Credential

      Parameters

      • config: {
            accessToken: string;
            expiresIn?: number;
            refreshFunction?: (
                refreshToken: string,
            ) => Promise<
                { accessToken: string; expiresIn?: number; refreshToken?: string },
            >;
            refreshToken?: string;
        }

      Returns OAuth2Credential

    Properties

    accessToken: string

    The access token

    expiresAt?: Date

    When the token expires

    refreshToken?: string

    The refresh token

    Type of credential

    Methods