How TOTP works
- Your app enrolls the user and displays a QR code.
- The user scans it with an authenticator app (like Google Authenticator or Authy).
- The app generates a time-based code every ~30 seconds, which your backend verifies.
Understand how TOTP works and when to use it as a second factor.