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

feat/identify-errors #184

Merged
merged 18 commits into from
Mar 9, 2022
Merged

feat/identify-errors #184

merged 18 commits into from
Mar 9, 2022

Conversation

MasterKale
Copy link
Owner

@MasterKale MasterKale commented Mar 4, 2022

Inspired by #183, I decided to take some of my notes on all of the possible errors raised by navigator.credentials.create() and navigator.credentials.get() and try to provide some programmatic insight on what likely led to the thrown error.

Now, when possible, a new WebAuthnError will be raised out of startRegistration() and startAuthentication() with a more direct message of what went wrong to help RP devs figure out how to fix the issue.

Screenshots

Screen Shot 2022-03-08 at 8 38 38 PM
Screen Shot 2022-03-07 at 8 46 10 PM
Screen Shot 2022-03-07 at 8 46 15 PM

@MasterKale MasterKale marked this pull request as ready for review March 8, 2022 04:41
@MasterKale MasterKale added this to the v5.0.0 milestone Mar 9, 2022
@MasterKale MasterKale added the package:browser @simplewebauthn/browser label Mar 9, 2022
@MasterKale MasterKale merged commit 30ed8e8 into master Mar 9, 2022
@MasterKale MasterKale deleted the feat/identify-errors branch March 9, 2022 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:browser @simplewebauthn/browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant