ADK for TypeScript: API Reference
    Preparing search index...

    Interface BaseAuthProvider

    Abstract base interface for custom authentication providers.

    interface BaseAuthProvider {
        getAuthCredential(
            authConfig: AuthConfig,
            context?: unknown,
        ): Promise<AuthCredential | undefined>;
    }

    Methods

    • Provide an AuthCredential asynchronously.

      Parameters

      • authConfig: AuthConfig

        The current authentication configuration.

      • Optionalcontext: unknown

        The current callback context (placeholder).

      Returns Promise<AuthCredential | undefined>

      The retrieved AuthCredential, or undefined if unavailable.