Skip to main content
Defined in: client/auth.ts:921 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:927

Parameters

options
EnterpriseManagedOptions

Returns

EnterpriseManagedAuth

Properties

kind

Defined in: client/auth.ts:922

Implementation of

AsyncHeaderAuth.kind

Methods

getHeaders()

Defined in: client/auth.ts:935

Returns

Promise<Record<string, string>>

Implementation of

AsyncHeaderAuth.getHeaders