Skip to main content
Version: 1.13.1

Class: CantonStaticTokenSource

Defined in: canton/authentication/token-source.ts:177

A TokenSource that always returns the same static token (no refresh).

Implements

  • TokenSource

Constructors

Constructor

new CantonStaticTokenSource(token: AccessToken): StaticTokenSource

Defined in: canton/authentication/token-source.ts:180

Creates a static token source that always returns the given token.

Parameters

ParameterType
tokenAccessToken

Returns

StaticTokenSource

Methods

token()

token(): Promise<AccessToken>

Defined in: canton/authentication/token-source.ts:184

Returns the static token.

Returns

Promise<AccessToken>

Implementation of

TokenSource.token