Skip to main content
Module

x/fido2/lib/main.js>Fido2Lib.addAttestationFormat

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Go to Latest
method Fido2Lib.addAttestationFormat
import { Fido2Lib } from "https://deno.land/x/fido2@3.3.1/lib/main.js";

Adds a new attestation format that will automatically be recognized and parsed for any future Fido2CreateRequest messages

Parameters

fmt

The name of the attestation format, as it appears in the ARIN registry and / or as it will appear in the Fido2CreateRequest message that is received

parseFn

The function that will be called to parse the attestation format. It will receive the attStmt as a parameter and will be called from the context (this) of the Fido2CreateRequest

validateFn

The function that will be called to validate the attestation format. It will receive no arguments, as all the necessary information for validating the attestation statement will be contained in the calling context (this).