app/middleware/oauth2.js
function (req, res, next) {
      if (req.query.return) {
        req.session.oauth2return = req.query.return;
      }
      next();
    }
function (req, res, next) {
      if (req.query.return) {
        req.session.oauth2return = req.query.return;
      }
      next();
    }
function ( req , res , next ) { if ( req . query . return ) { req . session . oauth2return = req . query . return ; } next ( ) ; }
Save the url of the user's current page so the app can redirect back to it after authorization
Save the url of the user s current page so the app can redirect back to it after authorization