Skip to content
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

Implement User Signup and Login Functionality #3

Closed
varma-101 opened this issue Oct 1, 2024 · 10 comments
Closed

Implement User Signup and Login Functionality #3

varma-101 opened this issue Oct 1, 2024 · 10 comments

Comments

@varma-101
Copy link
Contributor

Overview: This issue focuses on building the user authentication system for the application using Express.js and Passport.js. It will handle signup and login functionalities, allowing users to create accounts and authenticate via local strategy (username and password).

Goals:

Signup functionality: Allow users to register by providing a username, email, and password. Securely store passwords using bcrypt.
Login functionality: Implement login functionality that uses Passport.js for authenticating users with the local strategy (email and password).
Session Management: Use Passport.js to manage user sessions and persistent login across requests.
Technical Considerations:

Use bcrypt to hash and store passwords securely.
Implement Passport.js with the local strategy to handle email/password authentication.
Set up session management with express-session and Passport.js to handle persistent login sessions.
Create the following API routes:
POST /auth/signup: To register a new user.
POST /auth/login: To authenticate users using Passport.js and initiate a session.
GET /auth/logout: To log out a user and destroy their session.
Validate user inputs during signup to ensure strong passwords and valid email addresses.

@sudo-dpkg
Copy link
Owner

Assigned @varma-101

@varma-101
Copy link
Contributor Author

please add the labels hacktoberfest and gssoc-extd

@ShaikHafiza
Copy link

I want to work on this

@ankurrrrr7
Copy link

ASSIGN me please @jinx-vi-0

@ekayZ7875
Copy link

Heyy i can help you out with this issue please assign it to me.

@RiteshS1
Copy link

Hei @jinx-vi-0 ; Is this Issue still open? I dont see any further progress??
I would like to work upon some good backend issues like these! Feel free to assign me one!

@sudo-dpkg
Copy link
Owner

@varma-101 any update ?

@varma-101
Copy link
Contributor Author

yes i will deliver it tomorrow.Please add level labels to it.

@varma-101
Copy link
Contributor Author

i've created a pr please verify it and add level labels and gssoc and hacktoberfest labels to it.

@varma-101
Copy link
Contributor Author

Bro @jinx-vi-0 please verify it fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants