You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🚀 Issue: Create Express-Based Login and Signup Backend
Feature Description:
Develop a user authentication system using Express.js that supports login and signup functionalities. This will serve as the backend for user authentication, handling password hashing and session management.
✅ Requirements:
📌 User Signup API (/api/auth/signup)
Accepts: name, email, password
Hashes the password before storing it in the database.
Returns a success message or an error response.
📌 User Login API (/api/auth/login)
Accepts: email, password
Verifies credentials.
Creates a session or a cookie upon successful login.
Handles incorrect credentials with appropriate error messages.
📌 Database (MongoDB with Mongoose)
User Schema:
name: String
email: String (Unique)
password: Hashed String
createdAt: Timestamp
📖 Ensure Proper Implementation
✅ Use bcrypt.js for password hashing.
✅ Use express-session or cookies for session management.
✅ Validate input using express-validator.
The text was updated successfully, but these errors were encountered:
I hope you have checked the existing codes regarding the same, a login and signup page has been made, if you wish to make changes and make the database properly functional then I am assigning you this. Make sure when the user logs out and logs in again, the data should be restored immediately without any error
🚀 Issue: Create Express-Based Login and Signup Backend
Feature Description:
Develop a user authentication system using Express.js that supports login and signup functionalities. This will serve as the backend for user authentication, handling password hashing and session management.
✅ Requirements:
📌 User Signup API (
/api/auth/signup
)name
,email
,password
📌 User Login API (
/api/auth/login
)email
,password
📌 Database (MongoDB with Mongoose)
name
: Stringemail
: String (Unique)password
: Hashed StringcreatedAt
: Timestamp📖 Ensure Proper Implementation
The text was updated successfully, but these errors were encountered: