Azure Connectors Node.js SDK
    Preparing search index...

    Interface TokenCredential

    Represents a credential capable of providing an authentication token.

    interface TokenCredential {
        getToken(
            scopes: string | string[],
            options?: GetTokenOptions,
        ): Promise<AccessToken | null>;
    }

    Implemented by

    Index
    • Gets the token provided by this credential.

      This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.

      Parameters

      • scopes: string | string[]

        The list of scopes for which the token will have access.

      • Optionaloptions: GetTokenOptions

        The options used to configure any requests this TokenCredential implementation might make.

      Returns Promise<AccessToken | null>