Getting Error on verifyAuthenticationResponse as undefined (reading 'counter') #701
Usama-Akbar
started this conversation in
Troubleshooting
Replies: 3 comments
-
|
i'm having this same issues |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Does this guidance help resolve the issue? If not then I'll need some sample code and package versions to continue troubleshooting what's going wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yeah it can help you you can try this If it still doesn’t work than I can
give the code snipper
…On Sat, 25 Oct 2025 at 5:22 PM, Matthew Miller ***@***.***> wrote:
Does this guidance help resolve the issue?
https://simplewebauthn.dev/docs/packages/server#typeerror-cannot-read-properties-of-undefined-reading-counter
If not then I'll need some sample code and package versions to continue
troubleshooting what's going wrong.
—
Reply to this email directly, view it on GitHub
<#701 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4JHLGZTCHEUQ7SF7ZRBRXT3ZNTRXAVCNFSM6AAAAAB53S65EGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINZXHE3TCNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
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