Skip to content

Passkeys: sign in with Face ID, Touch ID or Windows Hello

Describes PhoenixKit 3.6.1.

A passkey lets a person sign in with what unlocks their device: Face ID, Touch ID, Windows Hello, a phone or a security key. The device keeps the key; the site stores only its public half. Passkeys came with PhoenixKit 3.6.0 and are off until you turn them on.

Where to find it

  • The switch: Settings > Authorization, tab Authentication Methods, section Passkeys (/admin/settings/authorization?tab=methods). You need the Security settings permission.
  • Each person’s own passkeys: the Security tab of their account settings (/profile/settings/security).
  • One person’s passkeys, for an admin: the Account tab of their user page.

Turning passkeys on

Tick Enable sign-in with a passkey (Face ID, Touch ID, Windows Hello) and press Save Authorization Settings.

A passkey works only on the domain it was made for. The setting names that domain. It is the host of the site’s address setting (site_url), or of the app’s own address when that is not set; never the address a visitor happened to use. If the site later moves to another domain, every passkey stops working and people sign in with their password or a magic link instead. Turn passkeys on once the address is final.

Settings, Authorization, Authentication Methods with the Passkeys section: Enable sign-in with a passkey, ticked Settings, Authorization, Authentication Methods with the Passkeys section: Enable sign-in with a passkey, ticked

The switch that turns passkeys on.

Adding a passkey

On the Security tab, the Passkeys card lists the person’s passkeys, or says You have no passkeys yet. Add a passkey asks the browser to make one, and the card says Passkey added: with its name.

For safety, a passkey can be added only within 15 minutes of signing in. After that the card asks the person to sign out, sign in again and come back. It can’t be added while an admin is signed in as that person (Passkeys cannot be added while you are signed in as someone else.).

Each passkey shows its name, when it was Added, when it was last used (or never used), and whether it is synced across the person’s devices or kept on this device only. A passkey made for another domain is marked: Made for …; it does not work on this site’s current address.

  • Rename: a new name of 1 to 100 characters, then Save.
  • Remove: asks Remove this passkey? It will no longer sign you in. first.

Adding or removing a passkey sends the account holder the Passkey added or Passkey removed email and a notification of the Security type. While the site requires email confirmation, the email goes only to a confirmed address.

The Passkeys card on a user's Security settings: what passkeys are, no passkeys yet, and the rule that adding one needs a fresh sign-in within 10 minutes The Passkeys card on a user's Security settings: what passkeys are, no passkeys yet, and the rule that adding one needs a fresh sign-in within 10 minutes

Passkeys on your own Security tab.

Signing in

While passkeys are on, the log-in page shows Sign in with passkey under Or continue with. A browser that has a passkey for the site also offers it in the email field as the page loads. Keep me logged in applies to a passkey sign-in too.

What admins can do

The Passkeys card on a user’s Account tab lists the person’s passkeys. Remove takes one away, after Remove this passkey? It will no longer sign this person in. The rule is the one for ending a person’s sessions: an Owner or Admin may do it, an Admin’s passkeys need an Owner, and only an Owner removes an Owner’s. The card is not shown for API-only accounts or managed organizations.

What it doesn’t do

  • An admin can’t add or rename a passkey for someone else. Only the person adds their own.
  • Passkeys don’t replace the password: password sign-in stays.
  • A passkey made for one domain never works on another.

For developers

The passkeys live in phoenix_kit_user_passkeys (migration V231) and use the wax_ library. mix phoenix_kit.doctor warns about passkeys made for a domain other than the site’s. The code is in PhoenixKit.Users.Passkeys, and the card is the live component PhoenixKitWeb.Live.Components.Passkeys.