Express 4.x app using Passport for authentication with Twitter.
Latest commit 419046c Aug 16, 2015 @jaredhanson jaredhanson Rename done to cb.
Failed to load latest commit information.
views Initial commit. Jul 18, 2015
.gitignore Initial commit. Jul 18, 2015
LICENSE Add LICENSE (Unlicense). Jul 18, 2015 Update README. Jul 18, 2015
package.json Initial commit. Jul 18, 2015
server.js Rename done to cb. Aug 15, 2015

This example demonstrates how to use Express 4.x and Passport to authenticate users using Twitter. 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-twitter-example
$ npm install

The example uses environment variables to configure the consumer key and consumer secret needed to access Twitter's API. Start the server with those variables set to the appropriate credentials.


Open a web browser and navigate to to see the example in action.