MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

Error: Unexpected authentication response challenge token", expected "null" #233

Closed rj-david closed 2 years ago

rj-david commented 2 years ago

Getting this error from our logs. Not sure if this is a bug or there is something wrong wherein the expected token is "null"

Error: Unexpected authentication response challenge token", expected "null"
    at verifyAuthenticationResponse (/home/bountee/bundle/programs/server/npm/node_modules/@simplewebauthn/server/dist/authentication/verifyAuthenticationResponse.js:62:15
MasterKale commented 2 years ago

What is the value of expectedChallenge you're passing to that method? Some example code will help me help you.

rj-david commented 2 years ago

Ah, got it. Need to figure out why the value being passed is null. Thanks