import { Fido2Lib } from "https://deno.land/x/fido2@3.3.4/lib/main.js";
Methods
Creates an assertion challenge and any other parameters for the navigator.credentials.get()
call.
The challenge
property is an ArrayBuffer
and will need to be encoded to be transmitted to the client.
Gets a challenge and any other parameters for the navigator.credentials.create()
call
The challenge
property is an ArrayBuffer
and will need to be encoded to be transmitted to the client.
Generates the options to send to the client for the specified extension
Static Methods
Adds a new attestation format that will automatically be recognized and parsed for any future Fido2CreateRequest messages
Adds a new global extension that will be available to all instantiations of Fido2Lib. Note that the extension must still be enabled by calling enableExtension for each instantiation of a Fido2Lib.
Adds a new MdsCollection to the global MDS collection list that will be used for findMdsEntry
Returns MdsEntry objects that match the requested id. The
lookup is done by calling MdsCollection#findEntry on the current global
MDS collection. If no global MDS collection has been specified using
setMdsCollection, an Error
will be thrown.
Validates an attestation response. Will be called within the context (this
) of a Fido2AttestationResult