summaryrefslogtreecommitdiff
path: root/lib/web/auth/facebook
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/web/auth/facebook/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/web/auth/facebook/index.js b/lib/web/auth/facebook/index.js
index 418ddeee..0ba948bb 100644
--- a/lib/web/auth/facebook/index.js
+++ b/lib/web/auth/facebook/index.js
@@ -5,7 +5,7 @@ const passport = require('passport')
const FacebookStrategy = require('passport-facebook').Strategy
const config = require('../../../config')
-const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
+const { passportGeneralCallback } = require('../utils')
let facebookAuth = module.exports = Router()
@@ -16,7 +16,6 @@ passport.use(new FacebookStrategy({
}, passportGeneralCallback))
facebookAuth.get('/auth/facebook', function (req, res, next) {
- setReturnToFromReferer(req)
passport.authenticate('facebook')(req, res, next)
})