Understanding Passport.js fundamentals
Passport.js is a fantastic library, widely used to implement authentication in Node.js applications. The official website of Passport.js defines the library as follows:
(Passport.js, http://www.passportjs.org/)
In essence, Passport.js is a middleware (https://expressjs.com/en/guide/using-middleware.html) that we will include in our Express application to provide many different strategies to implement authentication. Having a selection of such strategies allows us to choose the one that best fits our needs. We can use the library to easily implement social login functionality (such as Facebook, Twitter, Spotify, GitHub, and much more in more than 500 strategies...