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.
Parameters
Section titled “Parameters”discovery
Section titled “discovery”The OIDC discovery document.
config
Section titled “config”The OIDC client configuration (must include clientSecret).
string
The token to introspect.
Returns
Section titled “Returns”HttpRequest | null
An HttpRequest for the introspection endpoint, or null if the endpoint is not available.
Throws
Section titled “Throws”OidcError with code MISSING_CLIENT_SECRET if clientSecret is not configured.
RFC 7662 §2.1 — Introspection Request