-
Notifications
You must be signed in to change notification settings - Fork 3
feat: 2fa backup codes #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: enhance-two-factor-security-foundation
Are you sure you want to change the base?
feat: 2fa backup codes #2
Conversation
Co-authored-by: Peer Richelsen <[email protected]>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
PR #2
PR Type
Enhancement
Description
Add backup codes feature for two-factor authentication recovery
Generate and display 10 backup codes during 2FA setup with download/copy options
Allow users to disable 2FA or login using backup codes when authenticator unavailable
Store encrypted backup codes in database and validate during authentication
Add UI components and error handling for backup code workflows
Diagram Walkthrough
File Walkthrough
10 files
New backup code input componentAdd autoFocus prop to TwoFactor componentAdd backup code support to disable 2FA modalAdd backup codes display and download functionalityUpdate disable API to accept backup code parameterAdd backup code validation for disabling 2FAGenerate and return backup codes during 2FA setupAdd backup code login option with lost access flowAdd backup code error codesAdd backup code authentication logic to credentials provider2 files
Add backup code download and copy testsAdd backupCodes field to test user builder1 files
Add backup code related translation strings2 files
Add backupCodes column to users tableAdd backupCodes field to User model1 files
Add tabIndex to password visibility toggle button