React

Passkeys

26 steps 32 files 2 packages 1 dependencies

This pack adds passkeys to your app as a way to sign in without a password. Signed-in users add passkeys from their security settings, and the login page gains a "Sign in with a passkey" button.

  • The device picks the account at sign-in, so there is no email to type.
  • A passkey sign-in completes the login on its own, since the device already checked the user's fingerprint, face, or screen lock.
  • New passkeys are named after the password manager or device that holds them, such as iCloud Keychain, and users can rename or remove them.
  • The account owner gets an email whenever a passkey is added or removed.
  • Every sign-in keeps the user's password manager in sync, so a passkey removed in your app disappears from their devices.

Apply the passkeys pack with Flow. Start a new session in your selected coding agent and execute the following slash command inside it.

$ claude
> /flow.apply passkeys

After applying, Flow will make the following changes to your app.

  • Ask you for your app name and the passkey domain and origins for each environment, offering defaults from your config.

  • Establish a Security page to host the passkeys section, wherever your app is missing one.

  • Land the backend as shipped, from the migrations and model mixin through the validators, controllers, routes, and the change-notification mailer.

  • Add the passkey signals to your login and every other action that completes a login, and share them with the frontend through your Inertia middleware.

  • Restyle the passkeys section and the sign-in button to your design system.

  • Run the tests, then walk adding, renaming, and removing a passkey and signing in with it, and show you the result.

Terms & License Agreement