Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10 from visionmedia/patch-1

Update README.md
  • Loading branch information...
commit 1e23f5355d0fc80b38a914b60dddf9247940b766 2 parents 086ca27 + 1f955ee
@jaredhanson authored
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' }),
Please sign in to comment.
Something went wrong with that request. Please try again.