/passport-local-how-to

How to use Passport Local Strategy to handle authentication in express.js

Primary LanguageJavaScriptApache License 2.0Apache-2.0

How to use Passport Local Strategy to handle authentication in express.js

This repository contains all code to handle local authentication with Express and Passport.

Installation

To install and test the code please follow the following steps:

  • Clone or fork the repository
  • Go to the local repository folder and digit
npm install
  • Once all requested modules have been installed digit
npm start

The express application start at: http://localhost:5000/

The login form ask you to insert a username and password. The default correct values are:

  • Username: nicknaso
  • Password: nicknaso

I created this repository for all of you have trouble in create authentication system using Express and Passport. Feel free to send me feedback and issue to improve the example.

Nicola Del Gobbo

https://github.com/NickNaso/

https://www.npmjs.com/~nicknaso

https://twitter.com/NickNaso