Closed Nishitbaria closed 1 year ago
please assign me this role so i am start to work on this
Sure it'll be good, but to implement that we need to create a login page as well.
so i start to work on this ?
Yeah
please assign me this project so that i can help you to create login functionality.
Description
I would like to propose the implementation of MongoDB schemas for the login and signup functionality in the backend of the project. Currently, there is no dedicated schema designed to handle user authentication and registration data. This enhancement aims to introduce structured schemas to ensure secure storage and retrieval of user information.
Objective:
The objective of this issue is to create MongoDB schemas specifically tailored for the login and signup functionality in the backend. These schemas will provide a consistent and secure way to store and manage user data, facilitating authentication and registration processes.
Proposed Changes:
Design and create a "User" schema to represent user data, including fields such as username, email, password (hashed), and any additional relevant information.
Integrate bcrypt hashing mechanism to securely hash and store user passwords in the database.
Implement JWT-based authentication to generate tokens upon successful login and validate the tokens for subsequent requests, ensuring secure user sessions.
Integrate the "User" schema, bcrypt hashing, and JWT authentication into the existing backend codebase, enabling seamless interaction with the MongoDB database for user authentication and registration.