useAddAuthMethod hook allows users to add a passkey, password, or PIN to their existing account.
When to Use This
Common scenarios for upgrading auth methods:- Security-conscious users want to add a passkey or password to their account
- Enterprise requirements mandate stronger authentication
- User preference to have multiple ways to access their account
- Backup authentication as an alternative login method
Add a Passkey
Passkeys provide the strongest security upgrade. Users can add a passkey to their account:Add a Password
Users can add a traditional password to their account:Add a PIN
For a simpler upgrade, users can add a PIN:Handling the Popup
By default,useAddAuthMethod opens a popup window for the user to complete the auth method setup. You can control this behavior: