Options
All
  • Public
  • Public/Protected
  • All
Menu

A TokenProvider that obtains a new token by re-authenticating to the issuer.

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly audience

audience: string

Private Readonly clientAssertionLifetime

clientAssertionLifetime: number = ...

Private Readonly clientId

clientId: string

Private Readonly privateKey

privateKey: PrivateES256JWK

Private Readonly privateKeyPEM

privateKeyPEM: Promise<string>

Private Readonly scopes

scopes: string[]

Protected Optional token

token: Token

Private Readonly tokenEndpoint

tokenEndpoint: string

Methods

getToken

  • getToken(): Promise<string>
  • Returns a valid Bearer token to be presented to the Parcel gateway.

    Returns Promise<string>

Protected renewToken

  • renewToken(): Promise<Token>

Static isTokenProvider

Generated using TypeDoc