Skip to main content
Module

x/fido2/lib/attestations/none.js

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Go to Latest
File
/* eslint-disable no-invalid-this */// validators are a mixin, so it's okay that we're using 'this' all over the place
function noneParseFn(attStmt) { if (Object.keys(attStmt).length !== 0) { throw new Error("'none' attestation format: attStmt had fields"); }
return new Map();}
function noneValidateFn() { this.audit.journal.add("fmt");
return true;}
const noneAttestation = { name: "none", parseFn: noneParseFn, validateFn: noneValidateFn,};
export { noneAttestation };