Options
All
  • Public
  • Public/Protected
  • All
Menu

A TokenProvider that self-signs an access token.

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly principal

principal: string

Private Readonly privateKey

privateKey: PrivateES256JWK

Private Readonly privateKeyPEM

privateKeyPEM: Promise<string>

Private Readonly scopes

scopes: string[]

Protected Optional token

token: Token

Private Readonly tokenLifetime

tokenLifetime: number

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