code: function (req, res) {
        req.session.loggedIn = true;
        if (config.oauth2.validateHostedDomain) {
          req.session.allowedDomain = config.oauth2.hostedDomain;
        }
        var redirect = req.session.oauth2return || '/';
        delete req.session.oauth2return;
        res.redirect(redirect);
      }
docs: Redirect back to the original page, if any