Node JS Basic Auth using Passport Js for securing api example express js passport js passport http *how to get start : go to your project root npm install npm start