interface JWTVerificationResult

JWT verification result

Properties

valid: boolean

Whether the JWT is valid

Decoded payload if valid

optional
error: string

Error message if invalid

optional
expired: boolean

Whether the token has expired

optional
signatureValid: boolean

Whether the signature is valid

optional
jtiValid: boolean

Whether JTI validation passed (replay attack prevention)

optional
checksumValid: boolean

Whether checksum validation passed

optional
validationErrors: string[]

Detailed validation errors

Usage

import { type JWTVerificationResult } from ".";