ClientAuthFactory type

Attaches an authentication mode to a composed client's HTTP transport. Return the session API to expose as client.auth, or undefined for supplied-token authentication without a session API.

type ClientAuthFactory<TAuth> = (
  http: ApiClient,
  lifecycle: ClientLifecycle
) => TAuth