Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 086ca27 commit 1f955eeb2a7570e9c20798d023c7f7bc0fa8c23e @tj committed May 17, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 README.md
View
6 README.md
@@ -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' }),

0 comments on commit 1f955ee

Please sign in to comment.