> ## 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.

# Configure Security

> Configure two-factor authentication, recovery secrets, and modal step controls for the Para Modal.

Configure security features for the Para Modal including two-factor authentication and recovery options.

## Two-Factor Authentication

Enable two-factor authentication in the modal flow

Copy method signature

```tsx theme={null}
paraModalConfig={{
  twoFactorAuthEnabled: true
}}
```

When enabled, users will be prompted to set up two-factor authentication during the account creation flow.

## Recovery Secret

Show wallet recovery option during setup

Copy method signature

```tsx theme={null}
paraModalConfig={{
  recoverySecretStepEnabled: true
}}
```

When enabled, users will be shown their recovery secret during wallet creation, allowing them to back up their wallet.

## Combined Security Configuration

```tsx theme={null}
paraModalConfig={{
  twoFactorAuthEnabled: true,
  recoverySecretStepEnabled: true
}}
```

## Step Override

Control which step the modal displays when opened:

Override the initial step shown when the modal opens

Copy method signature

```tsx theme={null}
paraModalConfig={{
  currentStepOverride: "ACCOUNT_MAIN" // or "account_main"
}}
```

> [accordion] Available Modal Steps
>
> Authentication Steps:
>
> * `AUTH_MAIN` - Main authentication options
> * `AUTH_MORE` - Additional authentication methods
> * `AWAITING_OAUTH` - OAuth authentication in progress
> * `VERIFICATIONS` - Email/phone verification
>
> Wallet Creation Steps:
>
> * `BIOMETRIC_CREATION` - Biometric setup
> * `PASSWORD_CREATION` - Password creation
> * `SECRET` - Recovery secret display
> * `AWAITING_WALLET_CREATION` - Wallet creation in progress
>
> Account Management Steps:
>
> * `ACCOUNT_MAIN` - Main account view
> * `ACCOUNT_PROFILE` - Profile management
> * `CHAIN_SWITCH` - Network selection
>
> External Wallet Steps:
>
> * `EX_WALLET_MORE` - External wallet options
> * `EX_WALLET_SELECTED` - Selected external wallet
>
> Funds Management Steps:
>
> * `ADD_FUNDS_BUY` - Buy crypto interface
> * `ADD_FUNDS_RECEIVE` - Receive crypto interface
> * `ADD_FUNDS_WITHDRAW` - Withdraw crypto interface
>
> Security Steps:
>
> * `SETUP_2FA` - Two-factor authentication setup
> * `VERIFY_2FA` - Two-factor authentication verification

> [!WARNING]
>
> Setting an invalid step or a step that requires previous steps to be completed may cause unexpected behavior. Ensure the step override makes sense in your authentication flow.

## Complete Security Example

```tsx theme={null}
<ParaProvider
  paraClientConfig={{
    apiKey: process.env.REACT_APP_PARA_API_KEY || "",
  }}
  config={{
    appName: "Your App Name"
  }}
  paraModalConfig={{
    // Security features
    twoFactorAuthEnabled: true,
    recoverySecretStepEnabled: true,

    // Start at specific step
    currentStepOverride: "AUTH_MAIN"
  }}
>
  {children}
</ParaProvider>
```


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