Generating authentication options for a unknown user #404
Replies: 1 comment 1 reply
-
@Parakoos, you might be interested in a similar discussion: #318. WebAuthn API is suitable for a wide amount of use cases. That includes (but is not limited to):
I believe it is not possible to cover all possible use cases within a single code sample. So the implementation will vary based on the use case. In case you want to provide your users authentication with a Passkey experience without prompting them to enter their email/username. Then you can modify the sample simply by omitting the I find this page https://passkeys.dev/docs/use-cases/bootstrapping useful to understand the process you are likely interested in and apply it to the usage of this library. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to replicate your server example for my own project, and I'm totally confused by something.
First, I'm looking at your example web page.
So the very first thing that happens when the page opens is that we call the server's
generate-authentication-options
API. At this point, let's assume this is a unauthenticated user who wishes to log in. So... To us, it is a stranger.What confuses me is that in the example implementation of
generate-authentication-options
, you seem to assume knowledge of who the user is!I must be missing something really obvious here but... I can't work it out. Should we wait for the user to fill in their user name or email address before we start this? If so, why is this being called in the
<head>
?Beta Was this translation helpful? Give feedback.
All reactions