Multi-Factor Authentication Configuration
Configure TOTP-based multi-factor authentication for enhanced account security.
MFA adds an extra layer of security by requiring a second factor (time-based one-time password) in addition to the password.
MFA Overview
What is MFA?
- Second authentication factor after password
- Time-based One-Time Password (TOTP)
- Compatible with authenticator apps (Google Authenticator, Authy, 1Password, etc.)
- 6-digit codes that change every 30 seconds
This is a great way to add an extra layer of security to your application for your users.
MFA Setup Flow
User Enables MFA
- User navigates to Security Settings (in the
/settings/securityroute) - Clicks "Enable MFA"
- QR code generated and displayed
- User scans QR code with authenticator app
- User enters first TOTP code to verify
- Recovery codes generated and shown
- User saves recovery codes
- MFA enabled for account
MFA Login Flow
Challenge Flow
- User enters email and password
- Credentials verified
- Check if MFA enabled for user
- Show TOTP input form
- User enters 6-digit code
- Code verified
- Session created
- User signed in
Recovery Codes
Users can choose to use recovery codes instead of the TOTP code when they are not able to access their authenticator app.
Next: Captcha Plugin →