> ## 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.

# Step-up and remembered devices

> Ask people to prove it's them again before a sensitive action, let them skip the code on trusted devices, approve sign-ins from another device, and hold several accounts in one browser.

This page covers four related controls in Aiveth by Gooclaim:

* **Step-up for apps**: your app asks for a fresh sign-in or a second factor before a big step.
* **Remembered devices**: people skip the two-step code on a browser they trust.
* **Approve on another device**: people approve a new sign-in from a session they already have, with number matching.
* **Several accounts**: people stay signed in to more than one account in one browser.

## Step-up for apps

Before a sensitive action, such as a payment or changing account details, send the person to `/oauth/authorize` again with one or more of these parameters. They follow OpenID Connect Core.

**acr\_values** `string`

`urn:aiveth:acr:2fa` asks for a second factor proved **in this session**: the two-step code or a passkey. The PAPE multi-factor URI `http://schemas.openid.net/pape/policies/2007/06/multi-factor` is accepted too. Unknown values are ignored.

**max\_age** `integer`

The person must have proved it's them at most this many seconds ago. Values above one year change nothing.

**prompt** `string`

`login` asks the person to prove it's them now. `none` never shows a screen: Aiveth returns an error instead. `consent` and `select_account` are also accepted.

```text theme={null}
https://accounts.aiveth.com/oauth/authorize?response_type=code
  &client_id=YOUR_CLIENT_ID
  &redirect_uri=https://app.example.com/callback
  &scope=openid
  &state=...
  &code_challenge=...&code_challenge_method=S256
  &acr_values=urn:aiveth:acr:2fa
  &max_age=300
```

### What the person sees

If more proof is needed, Aiveth shows a **Confirm it's you** card. The person enters their two-step code or uses a passkey. Someone with neither signs in again for `max_age` or `prompt=login`.

### What your app gets back

The ID token says what was proved:

**acr** `string`

`urn:aiveth:acr:2fa` when this session proved a second factor, otherwise `urn:aiveth:acr:1fa`.

**auth\_time** `number`

The time of the latest proof.

Always check `acr` and `auth_time` in your app before you allow the action.

### Errors

| Error | When |
| - | - |
| `login_required` / `interaction_required` | `prompt=none` was sent, but a screen would be needed. |
| `unmet_authentication_requirements` | `acr_values` asked for a second factor the person does not have. |
| `invalid_request` | `max_age` or `prompt` is malformed. |

> [!WARNING]
>
> A remembered device and a password-only sign-in **never** satisfy `acr_values=urn:aiveth:acr:2fa`. That is the point of step-up.

## Remembered devices

Your organization can let people skip the two-step code on a device they trust.

**1. Choose how long**

In the console, go to **Security** → **Remembered devices**. Under **Remember a device for**, pick **7**, **14** or **30 days**, or **Off — ask for the code every time** (the default). You need `security:manage`. Your Owners are emailed about the change.

**2. People tick the box**

On the two-step page, people tick **Don't ask for a code on this device**. Their next sign-in in that browser skips the code.

The browser keeps a random value in a secure, host-only cookie. Aiveth stores only a hash of it.

A remembered device **stops counting**:

* when its time runs out, or sooner if your organization shortens the time,
* at once when the person is signed out everywhere: a password change or reset, an admin's sign-out of all sessions, or a suspension,
* when the person's two-step is removed.

People see and remove their own under **Your account** → **Remembered devices**, with **Forget** for one device or **Forget all devices**.

> [!NOTE]
>
> A remembered device lets a person past the two-step page, but it is never counted as a fresh second factor. Step-up requests and sensitive changes still ask for the code.

## Approve on another device

When someone signs in on a new device, the two-step page can offer to approve the sign-in from a device where they are already signed in. This works like the number matching in common authenticator apps.

* It is offered only when the person has another session that **proved a second factor** (a code, a passkey or an earlier approval). A remembered device can never approve.
* The new screen shows a number from 10 to 99. On the other device, the console shows **Is it you signing in?** with three numbers to choose from.
* Choosing the right number approves the sign-in. A wrong number, or saying it wasn't them, refuses it, emails the person and writes it to the activity log.
* A request lasts 2 minutes. A person can get at most 5 requests in 10 minutes, so requests cannot be used to wear someone down.
* Only the same person, in another session, can answer. Someone acting for them or a support session cannot.

An approved sign-in passes two-step as a fresh second factor, just like a code.

## Several accounts in one browser

By default, signing in to a new account in a browser ends the session it held. Your organization can let people stay signed in to more than one account and switch between them.

In the console, go to **Security** → **Several accounts in one browser** and turn it on. It is off by default. Your Owners are emailed about the change.

* Both organizations must allow it: the one the person is signed in to and the one they add.
* Adding an account means signing in to it with **its own** rules: its password, its two-step and its network rules. Nothing carries over.
* A browser holds at most 5 accounts.
* Only one account is active at a time. Apps, the console and `/oauth/authorize` see only the active account.
* Each switch checks the chosen session again: it must still be live and past two-step, the person and organization active, and the organization must still allow it. A session that fails drops out of the list.

## Related

* [Two-step sign-in](https://docs.aiveth.com/sign-in/two-step.md)
* [Login with Aiveth](https://docs.aiveth.com/apps/login-with-aiveth.md)
* [Tokens and claims](https://docs.aiveth.com/apps/tokens-and-claims.md)


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