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

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

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

Import a CryptoKey, makes basic checks and throws on failure

Parameters

key
  • CryptoKey to import
alg
  • Algorithm override