sk758495/PerfectAuthSystem-Mern ? reverse-engineered prompt
Reverse engineered prompt
Build me a full featured authentication app with a modern dark look and a really polished landing page. I want users to be able to register with name, email, phone, and password, then verify their account with a 6 digit email OTP before they can log in.
After login, the app should handle three paths cleanly, unverified users get sent back to OTP verification, users with Google Authenticator set up get asked for a 6 digit code, and verified users go straight to the right dashboard based on their role.
Make it use MySQL with tables for users, OTPs, and audit logs, and have the backend create the database automatically on startup. I also want a user dashboard where people can edit their profile, change password, turn 2FA on or off, and see recent security activity. For admins, build a dashboard with user search, role changes, verification toggles, delete user actions, and live security stats.
The landing page should feel impressive with a futuristic 3D security orb and glowing cyber style. If you need current docs for any libraries, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit