Overview
Login two-factor authentication (2FA) asks a user for a second factor after their first sign-in step, such as verifying their email or phone. Turn it on and choose the methods users can enroll in the Developer Portal’s Login Two-Factor Authentication setting: Off (users are never asked), Optional (users who enroll are asked for it), or Required (every user enrolls at their next sign-in). When a sign-in needs a second factor, the user either enrolls one (when your app requires 2FA and they don’t have one yet) or verifies one they already have. If an account keeps its wallet on the user’s device behind a passkey, that passkey is its second factor: the user doesn’t set up an authenticator app and isn’t asked for anything extra at sign-in. Accounts that keep their wallet on the device behind a password or PIN set up an authenticator app like other users.On the Updated Authentication Flow (Recommended)
If your app opts in withsupportsAuthV2: true, the Para-hosted page runs the second-factor step after the first one, and authenticateWithEmailOrPhone and authenticateWithOAuth keep waiting until the user completes it. No code changes are needed, and your app doesn’t build 2FA screens.
A few sign-ins don’t ask for a second factor:
- Native passkey sign-in with
loginWithPasskey(). A passkey created on the device that protects the user’s wallet is bound to the device and asks for the device’s biometrics or passcode, so signing in with it satisfies 2FA on its own. - External wallet sign-in with
completeExternalWalletLogin. The session proves control of the external wallet only and can’t sign with the account’s embedded Para wallets, so it doesn’t owe a second factor.
Without the Opt-In
Without the opt-in, the second-factor step runs on the same Para-hosted pages as the rest of the sign-in: the verification and login pages your app opens fromauthStateInfo, and the OAuth page. The user completes it there, and your pending sign-in call resolves as usual.