Skip to main content
Para’s default authentication flow provides a seamless onboarding experience with just an OTP code. However, some users may want to add stronger authentication methods to their account for enhanced security. The 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:

Adding Two-Factor Authentication (2FA)

For additional security beyond the primary auth method, see the documentation.

API Reference

For complete hook details, parameters, and return types, see the hook reference.