Getting Error on verifyAuthenticationResponse as undefined (reading 'counter') #701
Usama-Akbar
started this conversation in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First, I registered the user with a passkey and then verified the registration and saved the credentials in DB
which worked fine
Then I tried to log in with that but after verification its giving me an error on verifyAuthenticationResponse function in @simplewebauthn/server library
and giving me the below :
=== VERIFICATION ERROR ===
Error message: Cannot read properties of undefined (reading 'counter')
Full error: TypeError: Cannot read properties of undefined (reading 'counter')
at verifyAuthenticationResponse (/Users/usamaakbar/Documents/Projects/ERS Tech/koker_backend/node_modules/@simplewebauthn/server/script/authentication/verifyAuthenticationResponse.js:147:36)
at async verifyAuthentication (/Users/usamaakbar/Documents/Projects/ERS Tech/koker_backend/controllers/user.js:234:26)
Error stack: TypeError: Cannot read properties of undefined (reading 'counter')
Beta Was this translation helpful? Give feedback.
All reactions