From 9f8dcddf36d836c09c618845c90a2473421e7fbf Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 15 May 2013 11:33:26 +0200 Subject: facebook now uses users.authCallback as callback, like it should. --- routes.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/routes.js b/routes.js index 7abe210..00a328e 100644 --- a/routes.js +++ b/routes.js @@ -36,10 +36,7 @@ module.exports = function(app, passport, auth) { app.post('/test', users.signin); app.get('/auth/facebook', passport.authenticate('facebook', { failureRedirect: '/test' }), users.signin); - - app.get('/auth/facebook/callback', passport.authenticate('facebook', { failureRedirect: '/test' }), function(req, res) { - res.redirect('/dashboard'); - }); + app.get('/auth/facebook/callback', passport.authenticate('facebook', { failureRedirect: '/test' }), users.authCallback); app.get('/auth/twitter', passport.authenticate('twitter', { failureRedirect: '/test' }), users.signin); app.get('/auth/twitter/callback', passport.authenticate('twitter', { failureRedirect: '/test' }), users.authCallback); -- cgit v1.2.3