Skip to main content
Version: 1.15.0

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​

ParameterType
jwtstring

Returns​

StaticProvider

Inherited from​

StaticProviderBase.constructor

Properties​

type​

readonly type: 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