Skip to main content
Module

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

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

Exports public key to COSE data

  • Only works if original cose data from 'fromCose()' is available
  • Throws on any kind of failure