# Two-step sign-in

URL: https://docs.xodia.ai/account/two-step-sign-in
Last updated: 2026-11-25

Two-step sign-in asks for a second step after your password, Google or GitHub: a passkey (your fingerprint, face or device PIN) or a 6-digit code from an authenticator app. Someone who learns your password still can't get in. It's free on every plan.

## What it is and why

Your workspace holds your sites, their keys, your billing and your clients' content. With two-step sign-in on, signing in needs something you know, your password or your Google or GitHub account, and something you have: the device with your passkey, or the phone with your authenticator app.

- **Passkey:** the first choice. You confirm with your fingerprint, face or device PIN, with nothing to type, and it only works on Xodia's real sign-in page, so a fake page can't catch it.
- **Authenticator app:** any app that shows 6-digit sign-in codes. It's free, works offline and runs on almost any phone.
- **Backup codes:** 10 codes that each work once, for the day you can't use your passkey or your phone.

You can add more than one passkey and more than one authenticator app. Two methods, such as a passkey on your laptop and an app on your phone, mean losing one device never locks you out.

## Turn it on

Open Account settings from the menu under your name, then Security. Two-step sign-in shows Off until you add your first method.

1. Choose Add a passkey or Add an authenticator app

   If your account has a password, Xodia asks for it first.
2. For a passkey: confirm on your device

   Give it a name you'll recognise, like the device it's on. Your browser asks for your fingerprint, face or device PIN, or for a security key, and the passkey is saved on that device.
3. For an authenticator app: scan the code

   Open your authenticator app, add an account and scan the square code on the screen. If you can't scan it, type the key shown under it into the app instead.
4. Type the 6 digits

   Type the 6-digit code your app shows to finish. A code changes every 30 seconds, so use the one on screen now. Finish within 10 minutes, or start again.

Two-step sign-in is now On. Xodia signs you out everywhere else, so every other browser signs in again with the second step, and emails you that it's on.

## Save your backup codes

When your first method is added, Xodia shows 10 backup codes. They show this once only, so download them or write them down now, and keep them somewhere safe away from your phone, like a password manager or a printed page at home.

- Each backup code works once, in place of a passkey or an app code.
- Security shows how many codes you have left.
- Make new codes in Security when you run low. The old set stops working right away.

## Signing in with it

1. Sign in as usual

   Use your email and password, Google or GitHub. Xodia then asks for your second step, and shows which account it's for.
2. Use your passkey

   Choose the passkey button and confirm with your fingerprint, face or device PIN.
3. Or choose Use a code instead

   Type the 6 digits from your authenticator app, or one of your backup codes.

Tick **Trust this device for 30 days** on your own computer, and that browser skips the second step for 30 days. Leave it off on a shared or public computer. Security lists your trusted devices, and you can remove any of them.

The second step waits 10 minutes. After that, sign in again. After 5 wrong codes, wait 15 minutes before you try again.

## When Xodia asks again

Some actions show Confirm it's you and ask for your second step again when you last did it more than 15 minutes ago, even on a trusted device:

- Deleting a site, a workspace or your account.
- Moving a site to another workspace, or moving the workspace to a new owner.
- Changing your plan, seats or payment method.
- Changing a member's role, inviting an admin or removing a member, and changing workspace settings.
- Connecting GitHub, a host or an AI app, and adding or changing a domain.
- Adding or changing keys: a site's hosting settings, server task keys, CMS keys, and host or analytics keys.
- Turning two-step sign-in off, removing a method, adding one, or making new backup codes.
- Turning a workspace's two-step requirement on or off.

Confirm with your passkey or a code, and the action goes on. You aren't asked again for the next 15 minutes.

## Lost your phone

**Use a backup code.** On the sign-in step, choose Use a code instead and type one of your backup codes. Once you're in, open Security, remove the lost method, add a new one and make new backup codes.

**No backup codes either?** On the sign-in step, choose that you can't use any of them. Xodia emails a code to your account's address, which works for 15 minutes. Enter it, and two-step sign-in is removed from your account 3 days later. Xodia emails you when the wait starts and when it ends.

Email recovery can't start within 7 days of a password change or reset, so someone who has just taken over your password can't use it to remove your second step.

> **Warning:** **Didn't ask for this?** Someone may have your password and your email. Stop the recovery before the 3 days end: use the link in the email, sign in with your second step, or change your password. Each of these stops it. Then change your email account's password too.

If you can't reach your email either, contact [Xodia support](https://docs.xodia.ai/troubleshooting#still-stuck). After checking it's you, support can remove two-step sign-in, with a 24-hour wait and an email to your account first.

## Turn it off

In Account settings, Security, choose Turn off and confirm with your second step. Your methods, backup codes and trusted devices are removed, and Xodia emails you that it's off. Removing your last method turns it off too.

If a workspace you're in requires two-step sign-in, you can't open that workspace without it. See [Require two-step sign-in for your workspace](https://docs.xodia.ai/workspace/require-two-step-sign-in).

## Emails about your sign-in

Xodia emails your account when two-step sign-in is turned on or off, when a method is added or removed, when new backup codes are made, when someone signs in with the second step on a new device, and when a removal starts. Each email links to Security, so you can act if it wasn't you.
