Skip to content

Documentation / @agentick/server / wwwAuthenticateHeader

Function: wwwAuthenticateHeader()

wwwAuthenticateHeader(config): string

Defined in: server/src/auth.ts:90

Build the WWW-Authenticate header value for 401 responses. Includes the resource parameter per RFC 9728 when configured, enabling MCP/OAuth clients to discover the authorization server.

Parameters

config

AuthConfig | undefined

Returns

string

Released under the ISC License.