Documentation
    Preparing search index...

    Manages OAuth2 authentication for accessing the Google Contacts API. Handles exchanging authorization codes, refreshing access tokens, and providing updated credentials.

    Index

    Constructors

    Methods

    • Ensures the access token is valid and refreshes it if expired.

      Returns Promise<string>

      A promise that resolves to a valid access token.

    • Exchanges an authorization code for access and refresh tokens.

      Parameters

      • code: string

        The authorization code received from the OAuth flow.

      Returns Promise<void>

      A promise that resolves when tokens have been successfully obtained.