Skip to content

parseIntrospectResponse

parseIntrospectResponse(data): IntrospectionResponse

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

Parses and validates a token introspection response, ensuring the required active field is present.

unknown

The parsed JSON body returned from the introspection endpoint.

IntrospectionResponse

The validated IntrospectionResponse.

OidcError with code TOKEN_EXCHANGE_ERROR if the response is not an object or active is missing.

RFC 7662 §2.2 — Introspection Response