# Two-Factor Sign-In

Require a code from an authenticator app after your password, and keep backup codes for a lost phone

**Two-factor sign-in** adds a second step after your password: a 6-digit code from an authenticator app on your phone, such as Google Authenticator or 1Password. Someone who learns your password still cannot get in without your phone.

It is a personal setting — each member turns it on for their own account.

:::note
Signing in with **Google** is not affected. Google checks its own second step, so Qwetty does not ask for a code when you sign in with Google.
:::

## Before you start

- You need an authenticator app on your phone.
- You need a **password** on your account, because every two-factor change asks for it. If you only sign in with Google, set a password first — see [Password & Sessions](/en/account/password-and-sessions#setting-a-password-google-accounts). Until then the buttons are disabled with a note saying so.

## Turning it on

1. Open your name at the bottom of the sidebar → **Account**, and find **Two-factor sign-in**. Its badge says **Off**.
2. Click **Turn on**, enter your **Current password**, and click **Continue**.
3. Scan the QR code with your authenticator app. If you cannot scan it, type the key shown under **Can't scan it? Enter this key instead:** into the app.
4. Enter the **6-digit code** the app shows and click **Verify and turn on**.
5. Save your **backup codes** (below), then click **I've saved them**.

The badge now says **On**. If you close the window before step 4 succeeds, two-factor stays off and nothing changes.

If the code is refused, check that the time on your phone is set automatically, and try the newest code — codes change every 30 seconds.

## Backup codes

When you turn two-factor on, Qwetty shows **ten backup codes**. Each one signs you in **once** if you lose your phone or cannot open the app.

- They are shown **only at that moment**. Use **Copy** or **Download** (a text file) and keep them somewhere safe, such as a password manager.
- A used code stops working.
- To get a fresh set, click **New backup codes**, enter your password, and save the new codes. The old ones stop working immediately.

## Signing in with two-factor

1. Sign in with your email and password as usual.
2. On the **Two-factor sign-in** screen, enter the **Authentication code** from your app and click **Verify**.

On that screen you can also:

- Tick **Trust this device for 30 days** so this browser does not ask for a code again for 30 days. Only do this on your own device.
- Click **Use a backup code instead** to type one of your backup codes. **Use your authenticator app instead** switches back.
- Click **Back to sign in** to start over.

If you wait too long, or enter too many wrong codes, you see **This sign-in has expired. Sign in again with your password.** Start again from the sign-in page.

### In the mobile app

The Qwetty mobile app asks for the same 6-digit code (or a backup code) after your password. It has no "trust this device" option. After ten wrong codes in a row, sign-in is locked for 15 minutes.

## Turning it off

Click **Turn off**, enter your password, and confirm. Your account is then protected by your password alone, so only do this if you are switching phones and will turn it on again.

:::caution[Keep a way back in]
Without the authenticator app or an unused backup code, you cannot complete the second step, and there is no way to skip it from the sign-in screen. Store your backup codes somewhere you can reach without your phone, and if Google is linked to your account you can still sign in with Google.
:::

## Next steps

- [Password & Sessions](/en/account/password-and-sessions) — Sign out devices you don't recognise
- [Profile & Preferences](/en/account/profile) — Your name, email and language
- [Notifications](/en/account/notifications) — Push notifications and sounds
