Spaces:
Runtime error
Runtime error
Commit History
-
✨ feat(super-admin-2fa): introduce two-factor authentication
Akshar2325- implement comprehensive two-factor authentication (2fa) for super admins - extend db schema with models for 2fa methods, recovery codes, and trusted devices - add core modules and services for managing all 2fa related entities - integrate 2fa checks, pending token generation, and trusted device logic - provide api endpoints for enabling, sending, and verifying email and totp codes - enable management of recovery codes and trusted devices for enhanced security - update email service to support sending 2fa verification codes 📦 build(deps): add 2fa related dependencies - install crypto-js for secret encryption - install nanoid for unique id generation - install otplib for totp authenticator functionality - install qrcode for qr code generation 🔧 chore(messages): update common and 2fa related messages - add 'invalid_2fa_token' to common error messages - define specific success and error messages for all super admin 2fa features 📝 docs(super-admin-auth): add 2fa authentication flow …add3ead
-
fix(auth): improve robustness of user signup and email flow
Akshar2325- 【auth】make welcome email sending non-blocking to prevent signup failures - 【email】enhance error handling for email API to manage non-json responses feat(email): add detailed logging for traceability - log email payloads, raw API responses, and success/error states - improves debugging capabilities for email delivery issues refactor(db): remove unused clientId field from UserSession - clean up the prisma schema by removing the obsolete `clientId` columnfcc750f -
feat(auth): implement multi-step user registration flow
Akshar2325- Rework the user sign-up process into a secure, 5-step flow to ensure user verification and profile completeness before activation. 【Flow】 - Introduce a 5-step registration process: - 1. Initial registration (email, password, name) - 2. Email verification via OTP - 3. Phone number registration - 4. Phone verification via OTP - 5. Profile completion (interests, bio) & account activation 【Database】 - Enhance `User` model with new profile fields and detailed statuses - Add `UserOtp` model to manage OTP generation, verification, and expiry - Add `UserInterest` model to capture user genre preferences - Introduce new enums for `USER_STATUS`, `OTP_TYPE`, and `OTP_PURPOSE` 【API】 - Implement new controller endpoints for each step of the flow - Restrict login access to users who have completed the entire process 【Integrations】 - Add `EmailModule` to send transactional emails (OTP, Welcome) via Brevo - Add `SmsModule` to send verification codes via Authkey SMS service 【Core】 - C…db3d93b