code: function setReturnUrl() {
      return function(req, res, next) {
          if( req.session ) {
              req.session.returnTo = req.originalUrl || req.url;
          }
      };
  }
docs: AuthModule setReturnUrl
  
  @return {Function}
  @api public