This is a basic authentication system built with Node.js, Express.js, and Passport.js. It provides user registration, login, and logout functionalities with local authentication using email and password.
-
Clone the repository:
git clone https://github.com/RAKHEEBAHMAD/Basic-Authentication-System/
-
Clone the repository:
npm install
-
Home Page: Accessible at the root URL. If the user is authenticated, their name will be displayed.
-
Login Page: /login URL. Allows users to log in with their credentials.
-
Signup Page: /signup URL. Allows new users to create an account.
-
Logout: /logout URL. Allows logged-in users to log out.
-
The system uses local authentication with email and password.
-
User passwords are securely hashed using bcrypt.
-
User information is stored in memory (not persistent) in the users array.
-
Passport.js is used for authentication and session management.
- Node.js
- Express.js
- Passport.js