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

x/jose/util/decode_protected_header.ts>decodeProtectedHeader

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
function decodeProtectedHeader
import { decodeProtectedHeader } from "https://deno.land/x/jose@v4.15.0/util/decode_protected_header.ts";

Decodes the Protected Header of a JWE/JWS/JWT token utilizing any JOSE serialization.

Parameters

token: string | object

JWE/JWS/JWT token in any JOSE serialization.