Authentication
How your users sign in, with passkeys, passwords and authenticator apps, in the order you choose, and the sessions, lockout and password rules that keep it safe.
Authentication is how a user proves to your realm who they are. Every new realm signs users in with a passkey alone, or with a password followed by a code from an authenticator app, and it requires that second step from the first minute. You can change which methods a realm offers and in what order, how long a session lasts, and how hard the realm pushes back on guessing.
The one idea to hold: a chain decides, a module checks. Each sign-in method is a module that checks one thing, such as a password or a passkey. A chain puts modules in order and says what each answer means for the sign-in. A successful sign-in gives the user a session that records how they signed in, and every app and token the realm issues reads from it.
Capabilities
Section titled “Capabilities”Prove who you are
Section titled “Prove who you are”| Capability | What it gives you |
|---|---|
| Passkeys | Users sign in with a passkey alone, and add more once signed in (with limits) |
| Passwords | A username and password, checked against the realm’s own users |
| Authenticator app | A six-digit code from an app on the user’s phone, as a second step every user sets up, with a skip you can allow for a set time |
| Recovery codes | One-time codes that replace a lost authenticator app |
| Confirm identity | Before a sensitive change, the user shows they still hold their app or a passkey |
| Password rules | A weak password is refused whenever it is set |
| Users’ own factors | Users list their passkeys and apps, and remove one themselves |
| Pages in the user’s language | Sign-in prompts in English, French or German, with your own wording |
Shape the sign-in
Section titled “Shape the sign-in”| Capability | What it gives you |
|---|---|
| Sign-in chains | Methods in order, each with what its answer means |
| Sign-in modules | Every module’s name and settings, with their defaults |
| Branching | An answer that skips ahead, such as straight to a password for a user with no passkey |
| Chains every realm starts with | A safe sign-in from a realm’s first minute |
| An administrators’ chain | A separate sign-in for the realm’s administrators |
| Safe return addresses | After sign-in, a user is sent only to addresses you allow |
Keep sessions safe
Section titled “Keep sessions safe”| Capability | What it gives you |
|---|---|
| Sessions | How long a sign-in lasts, how long it may sit idle, and how many sessions one user holds; the oldest end first |
| Stronger sign-in in place | A stronger chain before a sensitive action upgrades the same session |
| Lockout | Repeated wrong answers lock the account for a while, even against the right password |
| Session management | Find a realm’s sessions and end them, each as a sign-out |
| Who am I | One call returns the signed-in user, their profile, roles and session |
Coming next
Section titled “Coming next”- Sign-in by email code: a one-time code or link, with no password.
- Passkey autofill: the username field offers the user’s passkeys as they type.
- Password reset: users reset a forgotten password themselves.
- More password rules: no reused or breached passwords, and passwords that expire.
- External directories: users sign in with an account held in another directory.
Everything else on the way is on What’s next for authentication.