Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AccessTokenRefresher

Package version

Helps the core-http token authentication policies with requesting a new token if we're not currently waiting for a new token.

Hierarchy

  • AccessTokenRefresher

Index

Constructors

Methods

Constructors

constructor

  • new AccessTokenRefresher(credential: TokenCredential, scopes: string | string[], requiredMillisecondsBeforeNewRefresh?: number): AccessTokenRefresher

Methods

isReady

  • isReady(): boolean

refresh

  • refresh(options: GetTokenOptions): Promise<AccessToken | undefined>

Generated using TypeDoc