Register WebAuthn for a logged-in user

The login form automatically prompt the user to register WebAuthn, however, it's possible that the user dismissed it.

To add the option to register WebAuthn in your Settings page, you can do the following:

1. Check if WebAuthn is available

WebAuthn is supported in some browsers like Google Chrome, but not all browsers and not all devices supports it. Do the following to decide whether or not to show the button to setup WebAuthn:

2. Register this device for WebAuthn

If WebAuthn is available, you can register WebAuthn for the user on button press:

Last updated