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

# Two-step sign-in

> Add a second step after the password with an authenticator app, a passkey or recovery codes, and require it for your whole organization.

Two-step sign-in asks for something more after the password, so a stolen password alone does not open an account. In Aiveth by Gooclaim the second step is:

* a 6-digit code from an **authenticator app** (Google Authenticator, Microsoft Authenticator, 1Password or any other),
* a **passkey**, used instead of the code, or
* one of the person's **recovery codes**, if they have lost their phone.

## Set up two-step

People set it up themselves under **Your account** → **Two-step sign-in** → **Set up two-step**.

**1. Scan the QR code**

Scan the QR code with an authenticator app. The account shows as "Aiveth by Gooclaim" in the app. The set-up waits 5 minutes for the first code.

**2. Enter the first code**

The first right code turns two-step on.

**3. Save the recovery codes**

Aiveth shows 10 recovery codes once. Choose **Download** to keep them, then **I've saved them**. Aiveth keeps only hashes of the codes and cannot show them again.

Setting up two-step ends the person's other sessions.

## Change or turn off two-step

Under **Your account** → **Two-step sign-in**:

| Action | What it needs |
| - | - |
| **Change authenticator** | The password and a current code (or a recovery code). The old app keeps working until the new one is confirmed. Two-step stays on, so this works even when your organization requires two-step. |
| **New recovery codes** | The password and a current code (or a recovery code). The old codes stop working. |
| **Turn off** | The password and a current code (or a recovery code). Refused while your organization requires two-step. |

Each change ends the person's other sessions.

## A passkey as the second step

If your organization has [passkeys](https://docs.aiveth.com/sign-in/passkeys.md) on and the person has one, the two-step page offers **Use a passkey instead** next to the code box. A passkey used to sign in from the start already counts as both the password and two-step, so no second step is asked.

## Require two-step for everyone

**1. Set up your own two-step first**

Only someone who uses two-step can require it. This keeps admins from locking themselves into a set-up they did not expect.

**2. Turn on the rule**

Go to **Security** and turn on **Require two-step sign-in**. You need the `security:manage` permission.

The setting shows how many people already use two-step. Everyone else must set it up the **next time they sign in**: after their password, Aiveth takes them to set-up before they can continue. This forced set-up also applies when people sign in with an email code, a phone code, or Google, Microsoft or GitHub.

## Wrong codes and lockout

Aiveth counts every code before it checks it:

* Too many codes in a short window and the person is asked to wait. Recovery codes allow 5 tries per 15 minutes.
* After **100 wrong codes in a row**, that second step is locked until an admin resets two-step. The person is told once when this happens.
* A right code clears the count. An authenticator code is accepted within 30 seconds of clock drift, and the same code is never accepted twice.

## Lost phone: an admin's reset

An admin who can manage the person opens them under **People** and chooses **Reset two-step**. The person is signed out of every session and sets up two-step again. A reset follows the Owner rules: only those with enough reach can reset an Owner's two-step.

Resetting two-step also removes the person's phone number from phone sign-in. See [Phone sign-in](https://docs.aiveth.com/sign-in/phone.md).

## Related

* [Step-up and remembered devices](https://docs.aiveth.com/sign-in/step-up-and-remembered-devices.md)
* [Passkeys](https://docs.aiveth.com/sign-in/passkeys.md)
* [Session security](https://docs.aiveth.com/sign-in/session-security.md)


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