Skip to content

Commit

Permalink
Fixed FIDO2 USB keys with PIN codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylianst committed Jul 24, 2020
1 parent 6a21eed commit a2a47a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webauthn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a2a47a1

Please sign in to comment.