Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set requireUserVerification to false during registration and authentication flow #19

Conversation

bradpurchase
Copy link
Contributor

Follow up of #18 to set requireUserVerification: false on the verifyRegistrationResponse and verifyAuthenticationResponse so that it actually uses the userVerification preference, as per: https://github.com/MasterKale/SimpleWebAuthn/blob/a169def3c663cb671cdc6bc6e00a4993944a61ae/packages/server/src/authentication/verifyAuthenticationResponse.ts#L210

This properly fixes the issue outlined in #18, where the following error is presented on registration or authentication if the user verification method is not available (i.e. Macbook is in clamshell mode and TouchID is not available): "User verification required, but user could not be verified".

@bradpurchase bradpurchase changed the title set requireUserVerification: false Set requireUserVerification to false for verifyRegistrationResponse and verifyAuthenticationResponse Jun 4, 2024
@bradpurchase bradpurchase changed the title Set requireUserVerification to false for verifyRegistrationResponse and verifyAuthenticationResponse Set requireUserVerification to false during registration and authentication flow Jun 4, 2024
@alexanderson1993 alexanderson1993 merged commit 8fb5f2f into alexanderson1993:main Jun 4, 2024
3 checks passed
@bradpurchase bradpurchase deleted the require-user-verification branch June 4, 2024 12:15
@alexanderson1993
Copy link
Owner

Published as 0.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants