The Ideal User Flow

Primary auth

  1. Start passkey discovery mode
  2. Let the device discover the account
  3. Confirm with Face ID, Touch ID, or PIN

Fallback auth

  1. Request an OTP code by email
  2. Enter the code in the same browser session
  3. Complete login without a password

Why this works

  • No secret to remember
  • Phishing resistant
  • Works even when passkeys are unavailable
  • Avoids account enumeration
Building a Production-Grade Passwordless Authentication System
4 / 12