Skip to content

buildIntrospectRequest

buildIntrospectRequest(discovery, config, token): HttpRequest | null

Defined in: packages/core/src/introspect.ts:18

Builds an HTTP request for token introspection using HTTP Basic client authentication. Returns null if the discovery document has no introspection_endpoint.

OidcDiscovery

The OIDC discovery document.

OidcConfig

The OIDC client configuration (must include clientSecret).

string

The token to introspect.

HttpRequest | null

An HttpRequest for the introspection endpoint, or null if the endpoint is not available.

OidcError with code MISSING_CLIENT_SECRET if clientSecret is not configured.

RFC 7662 §2.1 — Introspection Request