sqrrrl/passport-google-plus — pull request #7 by kopertop (2014-10-16 20:58:29+00:00)
Title: Added support for overriding the redirectUri at runtime.

Now you can use a dynamic hostname for the redirectUri, like so:

app.get('/auth/google/callback', function(req, res) {
var google_redirect_uri = 'http://' + req.get('Host') +
'/auth/google/callback';
passport.authenticate('google', { redirectUri:
google_redirect_uri})(req, res, function(){
res.redirect('/');
});
});