Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function jose.decodeProtectedHeader
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.0-rc0/deps.ts";
const { decodeProtectedHeader } = jose;

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.