In the last chapter, we talked about authentication using Passport as it relates to social login (Google, Facebook, GitHub, etc.). In this chapter, we’ll see how we can use Passport for local authentication with a MongoDB back end.
All of the code from this article is available for download on GitHub.
Once all of the prerequisite software is set up, we can get started.
We’ll begin by creating the folder for our app and then accessing ...