Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/faster/vendor/jose/index.ts>errors.JWTClaimValidationFailed

A fast and optimized middleware server with an absurdly small amount of code (300 lines) built on top of Deno's native HTTP APIs with no dependencies. It also has a collection of useful middlewares: log file, serve static, CORS, session, rate limit, token, body parsers, redirect, proxy and handle upload. Fully compatible with Deno Deploy.
Latest
class errors.JWTClaimValidationFailed
extends JOSEError
import { errors } from "https://deno.land/x/faster@v11.7/vendor/jose/index.ts";
const { JWTClaimValidationFailed } = errors;

An error subclass thrown when a JWT Claim Set member validation fails.

Properties

claim: string

The Claim for which the validation failed.

code: string
payload: JWTPayload

The parsed JWT Claims Set (aka payload). Other JWT claims may or may not have been verified at this point. The JSON Web Signature (JWS) or a JSON Web Encryption (JWE) structures' integrity has however been verified. Claims Set verification happens after the JWS Signature or JWE Decryption processes.

reason: string

Reason code for the validation failure.