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