diff --git a/webauthn.js b/webauthn.js index d1f25da3..264b5ff5 100644 --- a/webauthn.js +++ b/webauthn.js @@ -35,7 +35,7 @@ module.exports.CreateWebAuthnModule = function () { const response = { 'verified': false }; - if ((ctapMakeCredResp.fmt === 'none') || (ctapMakeCredResp.fmt === 'fido-u2f')) { + if ((ctapMakeCredResp.fmt === 'none') || (ctapMakeCredResp.fmt === 'fido-u2f') || (ctapMakeCredResp.fmt === 'packed')) { if (!(authrDataStruct.flags & 0x01)) { throw new Error('User was NOT presented during authentication!'); } // U2F_USER_PRESENTED const publicKey = COSEECDHAtoPKCS(authrDataStruct.COSEPublicKey);