Skip to content

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).

OidcConfig

The OIDC client configuration.

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)