Handling "No Passkey Found" in Discoverable Credentials Flow #719
divya-sampath
started this conversation in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am working to implement a discoverable credentials workflow. I'm aiming to create a user experience where, if a user does not have a passkey registered for our application on any device, they are automatically prompted to create one.
What is the correct way to detect the absence of a discoverable passkey for a user?
Does the navigator.credentials.get() method ever throw a NotFoundError in a discoverable credentials context (i.e., when allowCredentials is empty)? My current observation is that a NotAllowedError is thrown if the user cancels the prompt, even when no passkey is found, which makes it difficult to distinguish between user cancellation and the "no passkey found" scenario.
Any guidance on how to programmatically handle this specific scenario would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions