A secure and hassle-free passwordless login system built with Express, Node.js, React, MongoDB.
Eliminate the need for traditional passwords with this passwordless login web app. Users register with their email, and when they log in, a unique link is sent to their email for automatic access to the home page.
-βοΈ Passwordless Login: Say goodbye to passwords. -π User Registration: Quick and easy registration with just an email. -π Email Authentication: Secure authentication via email links. -π Home Page Access: Automatically redirected to the home page upon verification.
- Nodemailer(to send emails)
- jsonwebtoken(to set cookies)
To run the app locally, follow these steps:
-
Clone the repository:
git clone https://github.com/HISHAN03/passwordless-login-webapp.git cd PasswordLess-login
-
Install Dependencies::
# Server cd server npm install # Client cd ../client npm install
-
Install Dependencies: Create a .env file in the server directory with the following content:
MONGO_URI=your_mongodb_uri SMTP_EMAIL=your_email_for_sending_links SMTP_PASSWORD=your_email_password
-
Install Dependencies::
In one terminal, run the server: cd server node server In another terminal, run the client: cd client npm start
-
Access the app
Open your browser and go to http://localhost:3000.
We welcome contributions from the community. If you'd like to contribute to the development of this project, please follow these steps:
-
Fork the Repository:
Click the "Fork" button on the top right of this repository.
-
Clone Your Fork:
git clone https://github.com/HISHAN03/PasswordLess-login.git cd PasswordLess-login