Fixed FIDO2 USB keys with PIN codes.
This commit is contained in:
parent
6a21eedb08
commit
a2a47a1320
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue