Skip to main content
Defined in: client/auth.ts:647 An auth provider that acquires a token asynchronously and injects it as a request header per request. ClientCredentials, JwtBearerAuth, and EnterpriseManagedAuth all implement it. The transport recognizes these by their kind discriminant and injects getHeaders() on every request via a custom fetch wrapper (unlike static BearerAuth, whose header never changes, or interactive OAuth, which the SDK transport drives itself).

Implements

Constructors

Constructor

Defined in: client/auth.ts:664

Parameters

options
ClientCredentialsOptions

Returns

ClientCredentials

Properties

kind

Defined in: client/auth.ts:648

Implementation of

AsyncHeaderAuth.kind

Methods

getHeaders()

Defined in: client/auth.ts:690

Returns

Promise<Record<string, string>>

Implementation of

AsyncHeaderAuth.getHeaders