Skip to main content
Version: 1.13.1

Interface: CantonAuthProvider

Defined in: canton/authentication/types.ts:68

An authentication provider for the Canton Ledger API.

Exposes the auth scheme (type) and a token() method that returns a valid bearer JWT, fetching or refreshing as needed.

Properties

type

readonly type: CantonAuthType

Defined in: canton/authentication/types.ts:70

The auth scheme this provider was built from.

Methods

token()

token(): Promise<AccessToken>

Defined in: canton/authentication/types.ts:76

Returns a valid (non-expired) access token, fetching or refreshing as needed.

Safe to call concurrently.

Returns

Promise<AccessToken>