Let people sign in with a passkey
A passkey signs a person in with their fingerprint, face or screen lock instead of a password. It stays on their phone, their laptop or in their password manager, and it works only at your project’s own address, so a fake sign-in page cannot use it. This page shows how to turn passkeys on in a project and what your people then see.
Turn it on
Section titled “Turn it on”- Open the project’s Sign-in tab. Under Ways to sign in, switch on Passkeys and save.
- Check the notes beside the switch:
- The switch is disabled when the server is served at an IP address. Passkeys need a domain name.
- Over plain
http, browsers do not offer passkeys. The console warns about it.localhostis the one exception, for trying it on your own machine. - Adding a passkey needs email, so the console says so when no mail server is set up.
Passkeys are off in every project until you turn them on. The setting is free on every plan, and it is also available on the Administrators project (see Administrators and the console below).
An agent turns it on with project_update (passkeyLogin). Nobody can add a passkey for someone else: only the
person can.
What a person does
Section titled “What a person does”- They sign in and open their account page, Sign-in and security, at
/account/securityunder your project’s address. It has a Passkeys part above Two-step verification. - They choose Add a passkey. Their browser or phone asks for a fingerprint, face or screen lock and makes the passkey.
- The passkey is listed with a name such as “Chrome on Windows”, the date it was created, when it was last used, whether it is synced to their devices, and how it was added. FoxAuth emails them that a passkey was added.
Adding a passkey needs JavaScript in the browser. A person can hold up to 20 passkeys in a project.
Why adding one needs a strong sign-in
Section titled “Why adding one needs a strong sign-in”Someone who learned the password must not be able to add their own passkey. So adding one needs either:
- a sign-in in the last 15 minutes with a passkey, or with the password and a code from an authenticator app; or
- a sign-in with the password in the last 15 minutes, and a link mailed to the account’s address, opened in the same browser within 10 minutes. A link opened in another browser does nothing.
A person whose address is not confirmed yet cannot add a passkey. By default, someone who signs in only through a provider such as Google cannot add one either unless you turn on Let people who sign in through a provider add a passkey (see Going passwordless, recovery and adoption below). The page says why. On a passwordless account that has no password and no authenticator app, Sign-in and security shows only the Passkeys section and hides Two-step verification.
Signing in
Section titled “Signing in”The sign-in page offers Sign in with a passkey. When the person clicks into the email field, the browser also offers their passkeys for the project in its autofill list. The passkey block is there on every form of the page: with the password form, on a page with only providers, and on a page that refused a password from a known guessing address.
A passkey sign-in asks for no code, even in a project that requires a code from everyone, and even when the person has an authenticator app. It counts as two-step sign-in, because the device checks the person and holds the key. So it meets every requirement of two-step sign-in:
- an app with Require two-step sign-in, see Require two-step sign-in in one app;
- an API with Require two-step sign-in on its Access tab;
- a path behind your proxy with with two-step sign-in on its Ask to sign in again condition;
- an app that asks for the multi-factor
acrvalue itself.
The page that tells a person an app needs two-step sign-in also offers Sign in with a passkey in a project that accepts passkeys.
When a passkey cannot be used, the page says only “This passkey isn’t for project. Choose another one, or sign in another way.” It says the same for a passkey of another project, an unknown one, and one that may have been copied. After 30 such failures in an hour from one network, passkey sign-in is refused there until the hour ends. A locked or deactivated account gets “This account can’t sign in right now.” with no word about a password.
The offer after a password sign-in
Section titled “The offer after a password sign-in”After someone signs in with their password, FoxAuth asks whether to create a passkey before it sends them back to your app. The page explains what a passkey is and says that the password keeps working. It has Create a passkey and Not now, and from the second time also Don’t ask again.
- After a password and a code from an authenticator app, the new passkey counts as two-step sign-in at once.
- After a password alone, the new passkey works like the password until the person confirms it. FoxAuth emails them a Yes, this was me link, which works only in the browser where they made the passkey, within 72 hours. Until then, a sign-in with it is a password sign-in: an app that requires two-step sign-in still asks for a code, and a password reset removes the passkey. Someone who only knows the password gains nothing lasting from it.
The offer shows at most once in 30 days for each person, in every app of the project. It is not shown after a sign-in through a provider or with a passkey, when Remember me was unticked, on a device that cannot make a passkey, or after another page in the same sign-in, such as setting up an authenticator app or consent.
Turn it off with Offer a passkey after a password sign-in, under Passkeys on the Sign-in tab (an agent uses
project_update with passkeyOffer). People can still add passkeys on their own page.
Rename and remove
Section titled “Rename and remove”On Sign-in and security a person can rename a passkey after a sign-in in the last 15 minutes. A name has 1 to 64 characters, on one line.
Removing one needs the same proof as adding one. It stops signing them in at once, and FoxAuth emails them that it was removed. The last way into the project cannot be removed: a person with no password the project accepts and no provider must add another way first.
A passkey can be marked:
- Made for an old address: the project’s address changed since it was made, so it no longer works;
- Refused: it may have been copied: the device reported a use count lower than the last one FoxAuth saw.
Both can be removed like any other.
If someone else added one
Section titled “If someone else added one”The email about a new passkey has a This wasn’t me link. Within 72 hours it removes that passkey and every passkey added after it, and signs the account out everywhere. When the person has a password and the project lets people reset it, FoxAuth also emails them a link to set a new one, since someone else knows the password. The link works even after whoever added the passkey signed the account out everywhere.
What the browser is told
Section titled “What the browser is told”On Sign-in and security, browsers that support it are told which of the person’s passkeys your project still accepts and their current address, so the password manager stops offering a removed passkey. At a project with its own subdomain or hostname, a passkey that no project on the server knows is reported unknown after it is refused, so the password manager can delete it. At the server’s shared host this never happens, because that host also holds other projects’ passkeys.
Each host also answers /.well-known/passkey-endpoints, which password managers use for their “Manage” link. A
project with its own subdomain or hostname names its Sign-in and security page. The server’s shared host names no
page, so a password manager never sends someone into another project.
One address
Section titled “One address”A passkey belongs to the address it was made at:
- every project at a path of the server, and the default project, share the server’s host, such as
auth.example.com. A passkey of one of them is still refused at another; - a project at a subdomain, such as
acme.auth.example.com, or at a hostname of its own, has its own.
So when you move a project between a path, a subdomain and a hostname, or move the server’s ISSUER to another host,
its people’s passkeys stop working. They are listed as made for an old address, and people add new ones. A new path
keeps them working, since every path shares the server’s host.
Turning it off
Section titled “Turning it off”Switching Passkeys off keeps every passkey people have. They are listed with a note that the project does not accept them now, and they work again when you switch it back on.
If someone could then no longer sign in, because a passkey is their only way in, the console first shows how many people that is and asks you to confirm. An agent gets the same number to confirm.
For your app
Section titled “For your app”Your app receives the same ID token as after a password and a code: acr is your server’s multi-factor value, and
amr is ["pop", "user", "mfa"]. Only an app that asks for a passkey receives a different acr: see below. A passkey made after a password alone and not yet confirmed reports the password
acr and ["pop", "user"]. A sign-in with a passkey shows as “Passkey” in the person’s recent sign-ins, in the
email about a sign-in from somewhere new, and in the project’s activity.
Add a link named “Sign-in and security” to your app’s account settings that opens /account/security under your
project’s issuer. People who want a code from an authenticator app instead find it on the same page: see
Let people turn on two-step verification.
Require a passkey
Section titled “Require a passkey”A passkey can’t be used by a fake sign-in page, so it is the only phishing-resistant sign-in this server has. You can require a confirmed passkey in three places once the project accepts passkeys:
- One application. Turn on Require a passkey in the app’s Settings. Before it saves, the console shows how many people have no confirmed passkey. A person turned away sees a page that lets them create a passkey there, or sign in with the one they hold, and go on to the app. People who sign in through a provider, and devices that sign in with a code shown on a TV, can’t open the app this way.
- One API or MCP server. Choose Passkey under Sign-in required on the API’s Access tab. Every access
token for that API (JWT or opaque introspection) carries the phishing-resistant context (
phrby default), even when the client app did not request it, and tokens checked at your proxy get a401challenge withacr_valueswhen they fall short. See Protect an MCP server at your proxy. - One path behind your proxy. Choose With a passkey on Ask to sign in again (or on a Network facts
sign-in-again outcome) for a sensitive path such as
/payouts. See Add conditions at your proxy.
Turning Passkeys off on the project, or moving the project to an address that stops its passkeys working, previews and names every application, API, and proxy path that requires a passkey. Turning passkeys off leaves them closed until passkeys are back on or the requirement is lowered.
To ask for a passkey only on some pages of your own app, send acr_values=phr (the OpenID value for a phishing-resistant sign-in; the
Connect tab shows your server’s value). The ID token carries phr only after a passkey sign-in. Made essential in
the claims parameter, it turns people without a passkey away with unmet_authentication_requirements. When your app
names values, it is told the strongest of them the sign-in met, so an app that asks for the multi-factor value keeps
receiving it after a passkey.
Administrators and the console
Section titled “Administrators and the console”A super administrator can switch Passkeys on for the Administrators project on its Sign-in tab (or with
project_update on admin). Every administrator then sees a Passkeys tab in their account drawer, reached by
clicking their email in the console header, where they can add, rename and remove their own passkeys under the same
proof rules as end users. Because administrators have no /account/security page, there is no post-password passkey
offer on the Administrators project.
Super administrators see how many passkeys each administrator holds under Administrators -> Accounts, can open a
colleague’s Passkeys drawer to inspect metadata (never raw credentials), and can revoke one or all of a colleague’s
passkeys (which signs the colleague out everywhere and emails them). Agents have matching tools: admin_passkey_list,
admin_passkey_revoke, and admin_passkey_revoke_all. If an administrator clicks This wasn’t me on a passkey email,
FoxAuth removes the passkey and any added after it, signs them out everywhere, and alerts the other super administrators.
Once passkeys are on, a super administrator who holds a working passkey and signed in with one in their current session
can enable Require a passkey to sign in to the console (consolePasskeyRequired):
- Before it saves, the console names every administrator who does not yet hold a working passkey.
- Once enabled, existing non-passkey console sessions and
/mcpaccess tokens stop working immediately,/admin/loginrequestsphr,/admin/callbackrefuses any non-passkey sign-in, and non-passkey/mcprefresh tokens are refused before rotation. - An administrator without a passkey who tries to sign in to the console is turned away and told to ask a super administrator; the refusal page never offers to create a passkey on the spot.
- FoxAuth refuses any change (turning passkeys off, removing or revoking a passkey, disowning one, deactivating an account, or withdrawing super-administrator status) that would leave no super administrator able to sign in with a passkey.
Going passwordless, recovery and adoption
Section titled “Going passwordless, recovery and adoption”Once Passkeys are on and mail delivery is configured, a project can move beyond optional passkeys:
- Turn off passwords (
passwordLogin: false). A project can run with Passkeys alone, without an outside provider, when either self-service sign-up is open or at least one active account holds a working passkey. Before it saves, the console shows how many active accounts have no working passkey and no enabled provider (listing up to 20 addresses) and asks you to confirm. On the Administrators project, a super administrator who holds a working passkey and signed in with one can also turn passwords off when mail delivery is configured, after confirming the list of administrators without a passkey. - Passkey-only sign-up. In a passwordless project with open registration, new visitors enter their email address and prove they control the mailbox first (using the project’s Verification method, either a 10-minute browser-bound email link or a 6-digit email code) before FoxAuth creates the account and their first passkey. No account is created until WebAuthn finishes. Existing addresses see the identical screen and receive an informational email without modifying the existing account.
- Ask everyone to create a passkey (
passkeyRequired). On non-admin projects with passkeys on, switch this on to run a rollout campaign for people who still sign in with a password. They can skip up to 3 times within 14 days on a passkey-capable device; after that, creating a passkey is required to continue. Devices that cannot create a passkey can choose Continue this time without spending a skip. People who sign in through an outside provider are not prompted. The Sign-in tab tracks how many active people still have no passkey and how many have skipped. - Self-service passkey recovery (
passkeyRecovery, off by default). On non-admin projects, you can opt in to Allow passkey recovery by email. Because anyone who controls a person’s mailbox could use email recovery, the console warns before you enable it. On the sign-in page, Forgot your passkey? sends a 10-minute link bound to the same browser; if the account has an authenticator app, its code is always required even when the project does not require one. Recovery never signs the person in automatically, and the newly created passkey is capped at multi-factoracr(neverphr) for 72 hours unless the person signs in earlier with another full passkey. Not available on the Administrators project. - Administrator-sent passkey setup links. On any end-user’s Sign-in tab (or in a colleague administrator’s
Passkeys drawer under Administrators -> Accounts), choose Send passkey setup link (agents use
project_user_passkey_link_sendoradmin_passkey_link_send, both high-consequence tools). FoxAuth emails a single-use 24-hour link directly to the person’s verified address and never returns or logs the URL. Links are refused when the email address is unverified or changed within the last 7 days, and administrators cannot send one to themselves. The standalone/account/passkey-setuppage works in any browser, requires the account’s authenticator app if enrolled, and creates a full passkey. - Passkeys for provider-only people (
passkeyForFederated, off by default). On non-admin projects without SCIM provisioning, you can opt in to let people who sign in only through an outside provider add a passkey on/account/securityafter a fresh sign-in and a browser-bound email link. Turning on SCIM provisioning and turning onpasskeyForFederatedare mutually exclusive.
Upgrading
Section titled “Upgrading”Run bun run db:setup (or bun run db:setup:pg) after upgrading, so the server has its places to store passkeys,
recovery and registration challenges, setup links, and their indexes, then bun run db:migrate. After that, an older
release refuses to start against the database.