Class: CantonStaticProvider
Defined in: canton/authentication/static.ts:44
Static auth provider — pre-obtained JWT. Use for Canton participant endpoints where you already hold a valid JWT.
Extends
StaticProviderBase
Constructors
Constructor
new CantonStaticProvider(
jwt:string):StaticProvider
Defined in: canton/authentication/static.ts:24
Creates a new static provider wrapping the given JWT.
Parameters
| Parameter | Type |
|---|---|
jwt | string |
Returns
StaticProvider
Inherited from
StaticProviderBase.constructor
Properties
type
readonlytype:CantonAuthType=AuthType.Static
Defined in: canton/authentication/static.ts:45
Overrides
StaticProviderBase.type
Methods
token()
token():
Promise<AccessToken>
Defined in: canton/authentication/static.ts:35
Returns the static JWT.
Returns
Promise<AccessToken>
Inherited from
StaticProviderBase.token