Interface: CantonAuthProvider
Defined in: canton/authentication/types.ts:52
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
readonlytype:CantonAuthType
Defined in: canton/authentication/types.ts:54
The auth scheme this provider was built from.
Methods
token()
token():
Promise<AccessToken>
Defined in: canton/authentication/types.ts:60
Returns a valid (non-expired) access token, fetching or refreshing as needed.
Safe to call concurrently.
Returns
Promise<AccessToken>