Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 17, 2012
1 parent 086ca27 commit 1f955ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Expand Up @@ -43,11 +43,7 @@ For example, as route middleware in an [Express](http://expressjs.com/)
application:

app.get('/auth/twitter',
passport.authenticate('twitter'),
function(req, res){
// The request will be redirected to Twitter for authentication, so this
// function will not be called.
});
passport.authenticate('twitter'));

app.get('/auth/twitter/callback',
passport.authenticate('twitter', { failureRedirect: '/login' }),
Expand Down

0 comments on commit 1f955ee

Please sign in to comment.