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

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

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

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.