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

x/fido2/lib/keyUtils.js>PublicKey#fromCose

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Latest
method PublicKey.prototype.fromCose
import { PublicKey } from "https://deno.land/x/fido2@3.5.3/lib/keyUtils.js";

Import public key from COSE data. Throws on any type of failure.

Internally this function converts COSE to a JWK, then calls .fromJwk() to import key to CryptoKey

Parameters

cose
  • COSE data