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

# Log in with a Backup Code

If you are unable to log into the Portal, whether because you have exceeded the maximum allowed two-factor authentication attempts, are unable to access your authenticator app, or have lost your device, your merchant user manager can generate a backup code to allow you to regain access to your account. A backup code is a temporary one-time code used for account validation when a user's two-factor authentication is not available.

**Note:** Users can also generate up to 10 backup codes at a time in the IDP app to keep and use for themselves as a two-factor authentication method. For more information on generating backup codes in the IDP app, see [User Sign In - IDP](IDPSignInCred).

To log in to the Portal using a backup code, do the following:

1. Follow the [Log In Process](portalAccessingIDP) up to step 9.

2. On the **2-Step Verification** page, click **Use a backup code**.

   <img src="https://mintcdn.com/amdocs-spbu/itXsdbmkLJUvOY0b/marketONE/Commerce_Engine_User_Guide/images/care2FABUC.png?fit=max&auto=format&n=itXsdbmkLJUvOY0b&q=85&s=e53b379cf314acbb32d6b55482577e2c" alt="2-Step Verification Page" width="1142" height="996" data-path="marketONE/Commerce_Engine_User_Guide/images/care2FABUC.png" />

3. Enter your **Backup Code**.

4. Click **Next**.

You have successfully logged in to the Portal using a backup code and were redirected to the Portal landing page. If you are using a backup code because you lost access to your preferred MFA method, you must immediately change or update your MFA method. See [User Sign In - IDP](IDPSignInCred) for more information.

**Parent topic:**[Log in to the Commerce Engine Portal with Amdocs IDP](portalAccessingIDP)


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