createBearerAuthInterceptor(token: string | (() => Promise<string>)): ClientRequestInterceptor
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.
A request interceptor.