# Two-step verification

Source: https://docs.autessa.com/docs/guide/account/two-step-verification

> Ask for a code from your authenticator app or email after you sign in, and keep recovery codes for when you can't get one.

# Two-step verification

Two-step verification adds a second check when you sign in to Autessa. After your password, email code, or Google, Microsoft, Apple or single sign-on, Autessa also asks for a 6-digit code from your authenticator app or your email. Someone who learns your password still can't get into your account. It's optional, and you turn it on for your own account.

## What it's for

Use two-step verification to protect your account if your password is guessed, reused somewhere else, or stolen. You can turn on one or both ways to get a code:

- **Authenticator app**: a 6-digit code from an app on your phone, such as Google Authenticator, Microsoft Authenticator or 1Password. It works without a signal or an internet connection.
- **Email codes**: a 6-digit code sent to your account email.

When you turn on your first one, you also get ten **recovery codes**. Each one works once and lets you sign in if you can't get a code any other way.

## Navigating here

Open your account menu (your name or picture) and choose **Password & sign-in**. The **Two-step verification** section is under **Sign-in methods**. In the Autessa mobile app, go to **More** and then **Password & Sign-in**.

[Open Password & sign-in →](https://builder.autessa.com/account/security)

## Key concepts

### When you're asked for a code

Once two-step verification is on, you're asked for a code every time you sign in to Autessa, in the browser, the desktop app, the mobile app or the Autessa CLI. You choose which way to verify on the sign-in screen. Autessa starts with your authenticator app if you have one.

If email codes are your only method and you sign in with an email code, you aren't asked again: that code already proved you have your inbox. If you have an authenticator app, you're always asked for a code from it (or one of your other options).

The second step has to be finished within five minutes. If it takes longer, or you enter a wrong code too many times, start signing in again.

### Recovery codes

Recovery codes look like `abcd-efgh-jk`. They're shown only once, right after you turn on your first method or make new ones, so save them somewhere safe, like a password manager or a printed copy kept with your important papers. You can copy them or download them as a text file.

Each code works once. **Password & sign-in** shows how many you have left. Making new codes stops all of your old ones from working.

### What isn't affected

Two-step verification protects signing in. Keys and app passwords you've already created, such as API keys, poweruser keys and app passwords for **Drive on your computer**, keep working without a code.

Third-party apps that ask for your Autessa email and password directly can't finish the second step. Use **Continue with Google** or **Continue with Microsoft** on their sign-in page instead.

> The authenticator app in **Password & sign-in → Authenticator app** is a separate setting. It lets an Autessa agent confirm it's you before it shares something sensitive. It isn't used for signing in, and setting up one doesn't set up the other.

## How to turn on an authenticator app

1. Open **Password & sign-in** and find **Two-step verification**.
2. Next to **Authenticator app**, click **Set up**.
3. In your authenticator app, add an account and scan the QR code. If you can't scan it, type the key shown under the code instead.
4. Enter the 6-digit code the app shows, then click **Turn on**.
5. If this is your first method, save your recovery codes, check **I saved these codes somewhere safe**, and click **Done**.

If the code doesn't work, check that the time on your phone is set automatically, then try the newest code.

## How to turn on email codes

1. Open **Password & sign-in** and find **Two-step verification**.
2. Next to **Email codes**, click **Turn on**, then **Send code**.
3. Enter the 6-digit code from the email, then click **Turn on**.
4. If this is your first method, save your recovery codes and click **Done**.

## How to sign in with two-step verification

1. Sign in as usual with your password, an email code, or Google, Microsoft, Apple or single sign-on.
2. On the **Two-step verification** screen, enter the code from your authenticator app.
3. To use your email instead, click **Email me a code instead**. Autessa sends the code right away; click **Resend code** if it doesn't arrive.
4. If you can't get either code, click **Use a recovery code** and enter one of your saved codes.

After you use a recovery code, Autessa tells you how many you have left.

## How to get new recovery codes

1. Open **Password & sign-in** and find **Two-step verification**.
2. Next to **Recovery codes**, click **Get new codes**.
3. Enter a code from your authenticator app, or choose **Email me a code instead**.
4. Save the new codes and click **Done**. Your old codes no longer work.

## How to turn off a method

1. Open **Password & sign-in** and find **Two-step verification**.
2. Click **Remove** next to **Authenticator app**, or **Turn off** next to **Email codes**.
3. Confirm it's you with a code from any method that's on, or with a recovery code.

If you turn off your last method, two-step verification is off and your recovery codes stop working.

## If you lose your phone

1. On the **Two-step verification** sign-in screen, click **Email me a code instead** if you turned on email codes. Otherwise click **Use a recovery code**.
2. Once you're signed in, open **Password & sign-in** and **Remove** the authenticator app from the lost phone.
3. Set up your authenticator app again on your new phone. Then get new recovery codes if you used several of them.

If you've lost your phone, can't get to your email and have no recovery codes left, contact Autessa support from the email address on your account.

## Related

- [Authentication](/docs/guide/authentication.md)
- [Drive on your computer](/docs/guide/autessadb/drive-on-your-computer.md)
- [AI Application Firewall](/docs/guide/agentic/ai-application-firewall.md)

