diff options
Diffstat (limited to 'lib/web/auth/twitter')
-rw-r--r-- | lib/web/auth/twitter/index.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/web/auth/twitter/index.js b/lib/web/auth/twitter/index.js index 5aba20ff..56389f84 100644 --- a/lib/web/auth/twitter/index.js +++ b/lib/web/auth/twitter/index.js @@ -5,7 +5,7 @@ const passport = require('passport') const TwitterStrategy = require('passport-twitter').Strategy const config = require('../../../config') -const { setReturnToFromReferer, passportGeneralCallback } = require('../utils') +const { passportGeneralCallback } = require('../utils') let twitterAuth = module.exports = Router() @@ -16,7 +16,6 @@ passport.use(new TwitterStrategy({ }, passportGeneralCallback)) twitterAuth.get('/auth/twitter', function (req, res, next) { - setReturnToFromReferer(req) passport.authenticate('twitter')(req, res, next) }) |