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

Unable to Register a Passkey Using a PIN Code #501

Closed Yoichiro-Y closed 10 months ago

Yoichiro-Y commented 10 months ago

Describe the issue

Environment: Devices that cannot use biometric authentication (macOS Ventura 13.2.1 clamshell mode and Android emulator virtual terminal Pixel 7 Pro API 33) Click and press the "Register" button in the SimpleWebAuthn Example Project and try to register passkey, the following error response is returned. "error": "User verification required, but user could not be verified" The settings for the authenticator are set as follows

authenticatorSelection: {
    authenticatorAttachment: "platform",
    residentKey: "preferred",
    userVerification: "preferred"
}

In addition to this, I tried several other patterns with different settings for userVerification and residentKey, and the same error occurred.

Reproduction Steps

Expected behavior

Code Samples + WebAuthn Options and Responses

Dependencies

SimpleWebAuthn Libraries

$ npm list --depth=0 | grep @simplewebauthn
├── @simplewebauthn/browser@_._._
├── @simplewebauthn/server@_._._
# ...

Additional context

MasterKale commented 10 months ago

Hello @Yoichiro-Y, thank you for creating an issue about this. Fortunately this is very similar to https://github.com/MasterKale/SimpleWebAuthn/issues/477, which I fixed almost an hour ago in #500. Can you pull down the latest master branch and try again? I tested myself on my own MacBook Pro in clamshell mode and was able to complete both registration and authentication without being prompted for my system password (since biometrics are of course unavailable in this configuration.)

Yoichiro-Y commented 10 months ago

@MasterKale , thank you for your reply. I tried it with the latest master branch and it works as expected in clamshell mode!