This is very important for Backend Developers. It is all about security, how we can secure a website.
-
1st Step (Basic Login System, how it works).
-
2nd Step (Passport basic using
passport-local
Strategy, how to secure a route in REST APIs). -
3rd Step (Passport Setup and error handling).
-
4th Step (JWT Authentication and how it works). This setup is useful for SPA. This setup is implemented with a ReactJS Project and code will be found here.
-
6th Step (Passport Authentication by Email Confirmation using
nodemailer
andpassport-local
Strategy). -
7th Step (Email Verifiaction via OTP using
speakeasy
module and JWT).
Anyone of these sample don't live at these time
- Clone this Repository
- Go to any of these Directory, Which you want to run
- Install all Node Dependencies
- Configure MongoDB [Use MongoDB on Local System or MongoDB Atlas]
- Run this Command [
npm run dev
]