Enables twitter users to immediately log in to FCC without having to reauthorize the app

This commit is contained in:
webdev
2015-01-17 17:44:06 -05:00
parent c39e2672fc
commit c90d062f7b
3 changed files with 8 additions and 33 deletions

2
app.js
View File

@ -297,7 +297,7 @@ var passportOptions = {
failureRedirect: '/login'
};
app.get('/auth/twitter', passport.authenticate('twitter'));
app.get('/auth/twitter', passport.authorize('twitter'));
app.get(
'/auth/twitter/callback',
passport.authenticate('twitter', {