Skip to content

Commit

Permalink
fixing 'ReferenceError' bug in 'verifyAuthResponse()'
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed Mar 13, 2024
1 parent bb1c6bc commit f50ae1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,12 @@ async function verifySignatureSubtle(publicKeySPKI,algoCOSE,algoOID,signature,da
[ "verify", ]
);

return await crypto.subtle.verify(cipherOptions,pubKeySubtle,signature,data);
return await crypto.subtle.verify(
publicKeyAlgorithmsLookup[algoCOSE].cipherOpts,
pubKeySubtle,
signature,
data
);
}
catch (err) {
console.log(err);
Expand Down

0 comments on commit f50ae1b

Please sign in to comment.