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

x/fido2/lib/main.js>PublicKey#setAlgorithm

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

Sets internal algorithm identifier in format used by webcrypto, should be one of

  • Allows adding missing properties
  • Makes sure alg.hash is is { hash: { name: 'foo'} } format
  • Syncs back updated algorithm to this._key

Parameters

algorithmInput