Connectum API Reference / @connectum/auth / setAuthHeaders
Function: setAuthHeaders()
setAuthHeaders(
headers,context,propagatedClaims?):void
Defined in: packages/auth/src/headers.ts:35
Serialize AuthContext to request headers.
Sets standard auth headers on the provided Headers object. Used by auth interceptors when propagateHeaders is enabled.
Parameters
headers
Headers
Headers object to set auth headers on
context
Auth context to serialize
propagatedClaims?
string[]
Optional list of claim keys to propagate (all if undefined)
Returns
void
