This video shows you how to implement user authentication (login and signup) with username and password using passport.js.
Passport.js is authentication middleware for node.js, it is extremely modular and flexible and widely used in express based web applications. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more.
* Note - Avoid storing password hash in the session and using sync function in production.
[+] Sample Project Link : https://github.com/kharbanda14/youtub...
Thank you watching this and subscribe for more videos like this