Module

x/jose/index.ts>UnsecuredJWT

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Latest
class UnsecuredJWT
extends ProduceJWT
import { UnsecuredJWT } from "https://dotland.deno.dev/x/jose@v5.9.6/index.ts";

The UnsecuredJWT class is a utility for dealing with { "alg": "none" } Unsecured JWTs.

This class is exported (as a named export) from the main 'jose' module entry point as well as from its subpath export 'jose/jwt/unsecured'.

Methods

encode(): string

Encodes the Unsecured JWT.

Static Methods

decode<PayloadType = JWTPayload>(jwt: string, options?: JWTClaimVerificationOptions): UnsecuredResult<PayloadType>

Decodes an unsecured JWT.