Setu-TS
    Preparing search index...

    Function createBearerAuthInterceptor

    • Create a request interceptor that sets Authorization: Bearer <token>.

      Accepts a static token or an async provider. The header is only set when the request does not already carry an authorization header, allowing per-endpoint credential override.

      Parameters

      • token: string | (() => Promise<string>)

        Static bearer token or async provider returning one.

      Returns ClientRequestInterceptor

      A request interceptor.

      0.1.0