Authentication and logins in Node can be a complicated thing. Actually logging in for any application can be a pain. This article series will deal with authenticating in your Node application using the package Passport. We’ll release this entire gigantic series over 5 different tutorials….
Source: https://scotch.io/tutorials/easy-node-authentication-setup-and-local