vasuda-06/task4-mernstack-auth ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple MERN app with user sign up, log in, and log out.
I want the app to let someone create an account, sign in with email and password, and then see a private page only after they are logged in. If they are not signed in, they should be sent back to the login screen. Add basic form validation and clear error messages for things like wrong password or missing fields.
Please set up both the client and server so they work together, and make the experience feel clean and easy to use. Save the user session in a sensible way so refreshes do not immediately log the person out.
If you need to check the latest docs for anything, go ahead and look them up online. Also make sure the code is organized and easy to run locally with simple setup steps.
Are you gonna build this?
make sure you review the code using coderabbit