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

x/fido2/lib/utils.js

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Latest
import * as fido2 from "https://deno.land/x/fido2@3.5.3/lib/utils.js";

Functions

Given an Iterable/Iterator input which yields buffers, returns an IterableIterator which yields sync decoded objects Or, given an Async Iterable/Iterator which yields promises resolving in buffers, returns an AsyncIterableIterator.

Given an Iterable first argument, returns an Iterable where each value is encoded as a Buffer If the argument is only Async Iterable, the return value will be an Async Iterable.

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

Imports a JWK to a runtime-specific key representation (KeyLike). Either JWK "alg" (Algorithm) Parameter must be present or the optional "alg" argument. When running on a runtime using Web Cryptography API the jwk parameters "use", "key_ops", and "ext" are also used in the resulting CryptoKey.