Class: CantonStaticTokenSource
Defined in: canton/authentication/token-source.ts:181
A TokenSource that always returns the same static token (no refresh).
Mirrors oauth2.StaticTokenSource used by the Go static providers.
Implements
Constructors
Constructor
new CantonStaticTokenSource(
token:AccessToken):StaticTokenSource
Defined in: canton/authentication/token-source.ts:184
Creates a static token source that always returns the given token.
Parameters
| Parameter | Type |
|---|---|
token | AccessToken |
Returns
StaticTokenSource
Methods
token()
token():
Promise<AccessToken>
Defined in: canton/authentication/token-source.ts:188
Returns the static token.
Returns
Promise<AccessToken>