Passport's Local Strategy is easy to integrate. As always, let's start with the installation of this strategy as follows.
Passport's Local Strategy
Installing Passport's Local Strategy
We can install passport's Local Strategy by running the following command:
$ npm install passport-local --save
The following code should add the package to your package.json file:
...
"node-sass": "^4.7.2",
"nodemon": "^1.14.10",
"passport": "^0.4.0",
"passport-local": "^1.0.0",
...