UNPKG

jose

Version:

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes

9 lines (8 loc) • 446 B
import type * as t from '../types.d.ts'; /** * Decodes the Claims Set of a JWT in JWS Compact Serialization without validating its JWS Signature * (digital signature or MAC) or claim types and values. * * @returns The parsed JWT Claims Set. */ export declare function decodeJwt<PayloadType = t.JWTPayload>(jwt: string): PayloadType & t.JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);