buildClientAuthHeaders
buildClientAuthHeaders(
config):Record<string,string>
Defined in: packages/core/src/auth.ts:13
Builds HTTP Basic authentication headers from the client credentials.
Returns an empty object if clientSecret is not configured (public client).
Parameters
Section titled “Parameters”config
Section titled “config”The OIDC client configuration.
Returns
Section titled “Returns”Record<string, string>
A headers record containing the Authorization: Basic header, or an empty record for public clients.
RFC 6749 §2.3.1 — Client Password (HTTP Basic)