Skip to content

JoseErrorDetails ​

JoseErrorDetails ​

Structured context for a failure. Holds names and short identifiers only, never token segments, claim values or key material.

ts
interface JoseErrorDetails {
	readonly alg?: string;
	readonly kid?: string;
	readonly claim?: string;
	readonly crit?: readonly string[];
	readonly status?: number;
}

Properties

  • readonly alg?: string — The alg header value the token carried.
  • readonly kid?: string — The kid header value the token carried, truncated to 64 characters.
  • readonly claim?: string — The claim name a claims failure concerns.
  • readonly crit?: readonly string``[] — The critical header names that were refused.
  • readonly status?: number — The HTTP status a JWKS endpoint answered with.

Released under the MIT License.