# Two-factor authentication

> Turn on authenticator-app two-factor for your Atracode account, turn it off, and see which sign-in methods you can use.

Source: https://atracode.com/docs/two-factor

Two-factor authentication adds a 6-digit code from an authenticator app to every login. It is optional and you set it up yourself on the Account page. It works with any sign-in method.

## Check your sign-in method

You can sign in to Atracode with:

- **GitHub:** choose Continue with GitHub.
- **Google:** choose Continue with Google.
- **An email link:** enter your email address and we send you a sign-in link. Open it on the same device to continue. The same link creates your account if it's new.
- **SAML SSO:** choose Continue with SSO and enter your work email. You're sent to your company's identity provider.

There is no password to set and no separate sign-up form. An account is created the first time you sign in or when you pick a plan.

## Verify your email address

Open the [Account](/account) page. Under Two-factor authentication, the status says whether it's on.

If it says "Off. Verify your email address to turn it on.", select **Send verification email**, open the email, then reload the Account page. Two-factor can only be turned on for a verified email address.

## Scan the QR code

When the status says "Off. Add a code from an authenticator app when you log in.", select **Set up**. A QR code appears.

Scan it with an authenticator app such as Google Authenticator, 1Password or Authy. If you can't scan it, the page also shows a key you can type into the app instead.

## Enter the 6-digit code

Type the 6-digit code your app shows and select **Turn on**. When it succeeds, the page says "Two-factor authentication is on." and the status changes to show your authenticator app: "You'll enter a code each time you log in."

If you decide not to finish, select **Cancel** to close the setup.

> **Note:** If you signed in a while ago, the page may sign you out and send you to log in again before it changes two-factor settings. Log in and you return to the Account page.

---

## Log in with a code

From now on, after you choose a sign-in method, you're asked for the 6-digit code from your authenticator app. Enter it and select **Verify** to finish logging in. If you need to begin again, select **Start over**.

## Turn it off

To stop using two-factor, open the [Account](/account) page and select **Turn off** next to Two-factor authentication, then confirm. The page says "Two-factor authentication is off." and you log in without a code from then on.

## Next steps

- [Authentication](/docs/authentication): API keys and `atracode login` for the CLI
- [Plans and billing](/docs/plans-and-billing): plans, checkout and managing subscriptions
- [Data sharing](/docs/data-sharing): what Atracode keeps from your compilations
