Wanted to add a passkey prompt in my application | FusionAuth Forum
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode .
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Wanted to add a passkey prompt in my application
Scheduled
Pinned
Locked
Moved
Solved
Q&A
passkeys
webauthn
prompt
820
Loading More Posts
Oldest to Newest
Newest to Oldest
Most Votes
Reply
Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
dan
last edited by
I have an application using FusionAuth, and I want to prompt my end users to set up passkeys. Having this authentication method will improve their security and ease their future logins.
I know I can enable passkeys for FusionAuth using the community edition license, but how can I add a prompt in my application code/UI to have them set it up?
FusionAuth - Identity Without Constraints
https://fusionauth.io
1 Reply<br>Last reply
Reply<br>Quote
dan
@dan
last edited by
This is totally possible.
You want to start by understanding FusionAuth passkey setup and the normal flow.
Then, in your application, probably using one of the client libraries, you want to do the following for a user:
see if a user has a passkey set up, using the "retrieve a passkey" API. If this returns 0 passkeys, show the prompt.
for the prompt, you have two options:
use the API/client library to start the passkey registration process from within your application directly
send them to the user management page to add a passkey (requires a paid license)
The right way to do the latter depends on your application needs (are you okay with a redirect) and whether or not you have at least a starter license.
For reporting on the number of users that have set up passkeys, unfortunately you have to query all your users and then pull the passkey data individually. There's no way to use the elasticsearch syntax to do the query as of yet. There's an open github issue to add that functionality.
FusionAuth - Identity Without Constraints
https://fusionauth.io
1 Reply<br>Last reply
Reply<br>Quote
D dan has marked this topic as solved on
First post
Last post
Go to my next post
Looks like your connection to FusionAuth Forum was lost, please wait while we try to reconnect.