> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Login Two-Factor Authentication

> How login two-factor authentication works in React Native and Expo apps.

## 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](https://docs.getpara.com/v3/react-native/setup/developer-portal-security.md#login-two-factor-authentication): 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 with `supportsAuthV2: 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 from `authStateInfo`, and the OAuth page. The user completes it there, and your pending sign-in call resolves as usual.

> [!WARNING]
>
> If your app collects the email or phone code in its own UI (with `verifyNewAccount`), an account that owes a second factor can't finish signing in. The pending sign-in call doesn't throw: it keeps waiting until it times out. Call `para.cancelAuthFlow()` to end it, for example when the user backs out.
>
> In **Required** mode every new user owes a second factor, so in-app code entry blocks all new signups. Opt in to the [updated authentication flow](https://docs.getpara.com/v3/react-native/guides/add-email-phone.md#opt-in-to-the-updated-authentication-flow-recommended), where the user enters the code and completes the second factor on a Para-hosted page, before you set Login 2FA to Required.

## Next Steps

* [Email & Phone Login](https://docs.getpara.com/v3/react-native/guides/add-email-phone.md)
* [React Native API Reference](https://docs.getpara.com/v3/react-native/api/sdk.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.