From a2a47a1320a10c81ca4ec9eb826e16c9f1a2504d Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 24 Jul 2020 11:21:06 -0700 Subject: [PATCH] Fixed FIDO2 USB keys with PIN codes. --- webauthn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);