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

# Two-factor authentication for Locker account

> Add an extra layer of security to your Locker account by setting up two-factor authentication (2FA)

Add an extra layer of security to your Locker account by setting up two-factor authentication (2FA). Follow the instructions below to enable 2FA for Locker.

## Getting started with 2FA

<Steps>
  <Step title="Access settings">
    Log in to your Locker account on the web app.

    <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/locker-account-login-web.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=01c34d6b20071ac280e47c77271fdf68" alt="Log in to Locker account" style={{display: 'block', margin: '0 auto'}} width="563" height="630" data-path="images/en/locker-general/security-for-locker-account/locker-account-login-web.png" />
  </Step>

  <Step title="Navigate to Security and enable authentication">
    Go to `Settings` > `Security` > `Two-factor Authentication (2FA)`. Click the `Enable authentication` button.

    <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/enable-2fa-web.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=d5d6490a89ff706f4053555ec89c664f" alt="Enable 2FA" style={{display: 'block', margin: '0 auto'}} width="1805" height="762" data-path="images/en/locker-general/security-for-locker-account/enable-2fa-web.png" />
  </Step>

  <Step title="Choose a 2FA method">
    You will be redirected to the configuration page where you can select your preferred method.

    <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/2fa-web-page.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=960ca6f6dc772ecff157e324ada00c02" alt="Choose 2FA method" style={{display: 'block', margin: '0 auto'}} width="1516" height="645" data-path="images/en/locker-general/security-for-locker-account/2fa-web-page.png" />
  </Step>
</Steps>

***

## Setup methods

<Tabs>
  <Tab title="2FA with Email">
    <Steps>
      <Step title="Activate the method">
        Select **Email authentication** and click the `Activate` button.

        <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/enable-2fa-email.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=3983f59f27c099261addac0f93cd9d48" alt="Activate email 2FA" style={{display: 'block', margin: '0 auto'}} width="895" height="471" data-path="images/en/locker-general/security-for-locker-account/enable-2fa-email.png" />
      </Step>

      <Step title="Receive the OTP code">
        In the popup that appears, click `Continue` to receive an OTP code via your registered email.

        <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/confirm-2fa-email-otp.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=c1982535ee008b1959a8ea8da678c896" alt="Receive OTP via email" style={{display: 'block', margin: '0 auto'}} width="490" height="326" data-path="images/en/locker-general/security-for-locker-account/confirm-2fa-email-otp.png" />
      </Step>

      <Step title="Confirm">
        Enter the OTP sent to your email and click `Confirm`.

        <Note>**Note:** To disable this method, click the `Disable` button in this section and enter the OTP from your email to confirm.</Note>
      </Step>
    </Steps>
  </Tab>

  <Tab title="2FA with Authenticator app">
    ### Set up 2FA steps

    <Steps>
      <Step title="Select the method">
        Select **Authenticator app**.

        <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/enable-2fa-authapp.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=4e8f01f2f91ba03c30393e8375a4b34d" alt="Select authenticator app method" style={{display: 'block', margin: '0 auto'}} width="982" height="739" data-path="images/en/locker-general/security-for-locker-account/enable-2fa-authapp.png" />
      </Step>

      <Step title="Set up a base device">
        [Install the Locker app](https://locker.io/download) for desktop or mobile on another device to use as your authenticator app, or use another authenticator app like Google Authenticator, Authy,...
      </Step>

      <Step title="Complete the setup">
        Log in and follow the on-screen instructions to enable 2FA.

        <Warning>
          You should write down your **Recovery code** and keep it in a safe place in case you lose access to your base device.
        </Warning>

        <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/enable-2fa-authapp-manualcode.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=2288d710af3fe742cb8bc7b0182e3f4d" alt="Set up base device for authenticator app 2FA" style={{display: 'block', margin: '0 auto'}} width="646" height="397" data-path="images/en/locker-general/security-for-locker-account/enable-2fa-authapp-manualcode.png" />
      </Step>
    </Steps>

    ### 2FA recovery

    If you lose access to your authenticator app, you can use your recovery code to generate a login OTP:

    <Steps>
      <Step title="Create a new OTP">
        Open the Locker authenticator (or any authenticator app) and choose to add a new OTP code.
      </Step>

      <Step title="Enter recovery information">
        Name the OTP entry and enter the **recovery code** that was provided to you earlier.

        <img src="https://mintcdn.com/locker/DGmCYM1Opanpr-4x/images/en/locker-general/security-for-locker-account/confirm-2fa-authapp-manualcode.png?fit=max&auto=format&n=DGmCYM1Opanpr-4x&q=85&s=5eede1445d7b5050c2f684fdbd8b3638" alt="Use recovery code to generate a new OTP" style={{display: 'block', margin: '0 auto'}} width="434" height="342" data-path="images/en/locker-general/security-for-locker-account/confirm-2fa-authapp-manualcode.png" />
      </Step>

      <Step title="Confirm">
        Click the `Add` button. The app will generate a 6-digit TOTP code.
      </Step>

      <Step title="Log in">
        Use the newly generated TOTP code to complete the second login step for your Locker account.
      </Step>
    </Steps>
  </Tab>
</Tabs>
