---
title: "Two-factor sign-in and signed-in devices"
description: "Ask for a 6-digit code from an authenticator app at sign-in, keep recovery codes, and see or sign out the devices where your account is signed in."
url: https://vigiora.com/docs/admin/two-factor-sign-in
updated: 2026-11-25T11:37:01.000Z
---

# Two-factor sign-in and signed-in devices

> Ask for a 6-digit code from an authenticator app at sign-in, keep recovery codes, and see or sign out the devices where your account is signed in.

From Vigiora Server 1.8.0, each person can turn on **two-factor sign-in** for their own account. Once it is on, signing in needs your password and a 6-digit code from an authenticator app, or one of your recovery codes. It is off by default. Nobody is forced to use it, and the setup wizard does not ask for it.

The same **Account** page lists the devices where you are signed in, so you can sign out the ones you do not use.

## Open the Account page

Click **Account** in the account menu (the round person icon, top right). It is the same page as **Settings** → **People and access** → **My account**. The page has two parts: **Two-factor sign-in** and **Signed-in devices**.

## Turn on two-factor sign-in

You need an authenticator app on your phone, such as Google Authenticator, Microsoft Authenticator, 1Password, Bitwarden or Aegis.

1. **Start**

   On **Account**, under **Two-factor sign-in**, type **Your password** and click **Turn on**.

2. **Scan the picture**

   Scan the picture with your authenticator app. If you cannot scan, click the line **Cannot scan? Type this key into the app** and type the key.

3. **Confirm with a code**

   Type the **6-digit code** the app shows and click **Confirm and turn on**.

4. **Save your recovery codes**

   Vigiora shows 10 recovery codes once. Click **Copy** or **Download .txt**, keep them somewhere safe, then click **I saved them**.

> **You see the recovery codes only once**
>
> Each recovery code works one time, in place of an app code. If you lose your phone and have no recovery code, an admin has to turn two-factor off for you.

If the page says that this server cannot keep two-factor secrets safely, two-factor sign-in is not available on that server.

## Sign in with a code

1. Type your username and password as usual.
2. When the server asks for the code, type the 6-digit code from your app.
3. If you have no phone with you, click **Use a recovery code instead** and type one recovery code.

A code works once. Vigiora accepts the code of the current 30-second step and the steps just before and after it, so a small clock difference on your phone does not matter. If you type your password and then wait more than 5 minutes before the code, sign in again.

Too many wrong codes lock you out for a while. After 5 wrong tries, wait a few minutes before you try again.

## New recovery codes

On **Account**, click **New recovery codes**, type your password and a code, and confirm. The new codes replace all the old ones. The old codes stop working. The page shows how many recovery codes you have left.

## Turn it off

On **Account**, type your password and a 6-digit code (or a recovery code), then click **Turn off**.

## What two-factor does not cover

- **API keys** and connected AI apps (MCP and OAuth) do not ask for a code. They are separate credentials that a signed-in user made, and they keep working. An API key can never turn two-factor on or off.
- Turning two-factor on does not sign out your other devices. Use **Sign out everywhere else** for that.

## Signed-in devices

**Signed-in devices** lists every place where your account is signed in. Each line shows the browser and the system, the address of the last use, when it signed in and when it was last active. Your current device is marked **This device**.

- Click **Sign out** on a line to sign that device out.
- Click **Sign out everywhere else** to sign out every device except this one. They need the password again.
- **Changing your password signs out all your other devices** and the AI apps you connected with OAuth.

A device you sign out keeps working for up to 15 minutes, until its short access token runs out. Then it asks for the password.

## When someone loses their phone

1. The person signs in with a recovery code, then turns two-factor off and on again from **Account** to set up the new phone and get new recovery codes.
2. If they have no recovery code, an admin opens **Settings** → **People and access** → **Users**, finds the person (marked **Two-factor on**) and clicks **Turn off two-factor**. The person then signs in with the password alone and can turn it on again. Vigiora writes this to the audit log.

> **Note**
>
> If the only admin loses both the phone and the recovery codes, Vigiora Server has no local reset command for this.

## API

From API 1.107.0, `GET /api/v1/account/two-factor` shows the two-factor status, and `GET /api/v1/account/sessions` lists the signed-in devices (scope `account:read`). `DELETE /api/v1/account/sessions/{session_id}` signs a device out (scope `account:write`). Turning two-factor on or off, and signing out all other devices, need a signed-in user session and never work with an API key. An admin session can reset a user with `POST /api/v1/users/{user_id}/actions/reset-two-factor`. See [API v1](https://vigiora.com/docs/developers/api-v1#api-1107-to-1115-security-privacy-automations-and-speech).

---

Source: https://vigiora.com/docs/admin/two-factor-sign-in · Last updated 25 Nov 2026, 11:37 UTC
