Documentation - v1.2.0-alpha.3
    Preparing search index...

    Token credential implementation that uses MSAL (Microsoft Authentication Library) to acquire access tokens. Implements the Azure Core Auth TokenCredential interface for authentication scenarios.

    Implements

    • TokenCredential
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Retrieves an access token for the specified scopes using MSAL authentication.

      Parameters

      • scopes: string[]

        Array of scopes for which to request an access token. The first scope is used to determine the resource.

      • Optionaloptions: GetTokenOptions

        Optional parameters for token retrieval (currently unused).

      Returns Promise<{ expiresOnTimestamp: number; token: string }>

      Promise that resolves to an access token with expiration timestamp.