Member Junction
    Preparing search index...

    Credentials for Gmail provider using OAuth2. Extend ProviderCredentialsBase to support per-request credential override.

    TEMPORARY INTERFACE: This interface is part of the interim credential solution for 2.x patch release. In a future release, this will be integrated with the comprehensive credential management system.

    interface GmailCredentials {
        clientId?: string;
        clientSecret?: string;
        disableEnvironmentFallback?: boolean;
        redirectUri?: string;
        refreshToken?: string;
        serviceAccountEmail?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clientId?: string

    Google OAuth2 Client ID

    clientSecret?: string

    Google OAuth2 Client Secret

    disableEnvironmentFallback?: boolean

    When true, environment variable fallback is DISABLED for this request. If credentials are incomplete and this is true, the request will fail rather than falling back to environment variables.

    false (fallback enabled for backward compatibility)
    
    // With fallback (default) - uses env var if apiKey not provided
    await provider.SendSingleMessage(message, {});

    // Without fallback - fails if apiKey not provided
    await provider.SendSingleMessage(message, {
    disableEnvironmentFallback: true
    });
    redirectUri?: string

    OAuth2 Redirect URI

    refreshToken?: string

    OAuth2 Refresh Token

    serviceAccountEmail?: string

    Service account email (optional)