Skip to content

Interface: Transport

Interface: Transport

Defined in: auth-client/src/core/types.ts:207

Wraps fetch. The default is a thin fetch wrapper that attaches the Authorization header when the SDK has a token. Custom impls can add retry, circuit breaking, observability, etc.

Methods

request()

request<T>(input): Promise<TransportResponse<T>>

Defined in: auth-client/src/core/types.ts:208

Type Parameters

T

T = unknown

Parameters

input

TransportRequest

Returns

Promise<TransportResponse<T>>