Stytch TOTP 2FA Authentication is a secondary authentication method that adds an extra layer of security using TOTP (Time-based One-Time Password) from authenticator apps like Google Authenticator, Authy, or 1Password.
/stytch/email/send-otp
and
/stytch/email/verify-otp
endpoints, but they are disabled by default. Simply
run your auth service at the configured URL to enable Stytch Email OTP
functionality.Create TOTP Registration
Verify TOTP Setup
Authenticate with TOTP 2FA
Verify OTP
Get or Mint a PKP
Generate Auth Context