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

Example is broken with "User verification required, but user could not be verified" #477

Closed damianobarbati closed 10 months ago

damianobarbati commented 1 year ago

Describe the issue

Running the example (with the current instructions) results in the following:

Screenshot 2023-11-10 at 21 32 47
MasterKale commented 1 year ago

Ah, thank you @damianobarbati, it seems at some point in the example I took out the user verification requirement from registration options but didn't make UV optional in registration response validation. I'll take care of this shortly.

If you don't want to wait you can either add userVerification: 'required' to authenticatorSelection (here), or set requireUserVerification: false when verifying the response (here).

MasterKale commented 10 months ago

Thanks for your patience, I've gone ahead and updated the example! ✌️