Express 4.x app using Passport for authentication with username and password.
Failed to load latest commit information.
db Add example. Aug 15, 2015
views Add example. Aug 15, 2015
.gitignore Add example. Aug 15, 2015
LICENSE Add example. Aug 15, 2015 Update README. Aug 15, 2015
package.json Add example. Aug 15, 2015
server.js Set resave and saveUninitialized to false. Aug 20, 2015

This example demonstrates how to use Express 4.x and Passport to authenticate users using a username and password with form-based authentication. Use this example as a starting point for your own web applications.


To install this example on your computer, clone the repository and install dependencies.

$ git clone
$ cd express-4.x-local-example
$ npm install

Start the server.

$ node server.js

Open a web browser and navigate to http://localhost:3000/ to see the example in action. Log in using username jack and password secret.