An Authenticator class for the OAuth 2.0 Authorization Code with PKCE grant.

Hierarchy

Constructors

Properties

_accessToken?: string
_authInProgress: boolean = true
_expires?: number
authServer?: string
baseUrl: string = DEFAULT_BASE_URL
callback: string
clientId: string

Accessors

  • get accessToken(): Promise<undefined | string>
  • Promise that will resolve with an access token if available or undefined otherwise. This will try to fetch a new access token if:

    • the class implements the fetchAccessToken method
    • no unexpired access token is stored in this class

    Returns Promise<undefined | string>

Methods

  • Parameters

    • code: string
    • state: string

    Returns Promise<void>

Generated using TypeDoc