Logging In With Email OTP Codes

Simple but secure

  • Send a unique, time-limited 8-character alphanumeric code.
  • Access to the email account becomes proof of identity.
  • The code must be entered in the same browser session.
  • Users can read the email on one device and sign in on another.

Flow

  1. User requests a login code
  2. Server creates an auth attempt
  3. Email delivers the code
  4. User enters the code
  5. Server verifies the attempt and signs the user in
Building a Production-Grade Passwordless Authentication System
5 / 12