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 scopes

scopes: string[]

Private Readonly signer

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

Static sign

  • Parameters

    Returns Promise<string>

Generated using TypeDoc