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

x/fido2/lib/main.js>tools.decodeProtectedHeader

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Go to Latest
function tools.decodeProtectedHeader
Re-export
import { tools } from "https://deno.land/x/fido2@3.3.5/lib/main.js";
const { decodeProtectedHeader } = tools;

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

Examples

Usage

const protectedHeader = jose.decodeProtectedHeader(token)
console.log(protectedHeader)

Parameters

token: string | object

JWE/JWS/JWT token in any JOSE serialization.