mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
changed on server
This commit is contained in:
@ -8,7 +8,11 @@ module.exports = function(app, passport) {
|
||||
]}));
|
||||
|
||||
app.get('/auth/callback', function(req, res, next) {
|
||||
passport.authenticate('google', function(err, user, info) {
|
||||
var options = {
|
||||
callbackURL: 'http://' + req.headers['x-forwarded-host'] + '/auth/callback'
|
||||
};
|
||||
console.log(options);
|
||||
passport.authenticate('google', options, function(err, user, info) {
|
||||
var redirectUrl = '/';
|
||||
|
||||
if (err) { return next(err); }
|
||||
@ -42,4 +46,4 @@ module.exports = function(app, passport) {
|
||||
next();
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user