Fixed FIDO2 USB keys with PIN codes.

Ylian Saint-Hilaire committed Jul 24, 2020 at 11:21 UTC a2a47a1320a10c81ca4ec9eb826e16c9f1a2504d
1 file changed +1 -1
webauthn.js
+1 -1
@@ -35,7 +35,7 @@ module.exports.CreateWebAuthnModule = function () {
35
36 const response = { 'verified': false };
37
38 - if ((ctapMakeCredResp.fmt === 'none') || (ctapMakeCredResp.fmt === 'fido-u2f')) {
38 + if ((ctapMakeCredResp.fmt === 'none') || (ctapMakeCredResp.fmt === 'fido-u2f') || (ctapMakeCredResp.fmt === 'packed')) {
39 if (!(authrDataStruct.flags & 0x01)) { throw new Error('User was NOT presented during authentication!'); } // U2F_USER_PRESENTED
40
41 const publicKey = COSEECDHAtoPKCS(authrDataStruct.COSEPublicKey);