Skip to content

Function: authHeaders()

authHeaders(client): Promise<Record<string, string>>

Mint auth headers for one upstream request as a plain object, ready to spread into a fetch init. Call it per request: the SDK refreshes the underlying token when needed, so a long-lived process never has to track expiry itself.

AuthenticatingClientLike

Promise<Record<string, string>>