title: Passport authentiation middleware res not found
body: <p>I have below code base</p>
  
  <pre><code>passport.use(new LocalStrategy({
    usernameField: 'emailAddress',
    passwordField: 'password',
    passReqToCallback: true
  },
   function(req,username, password, next) {
     var res =""; // this is the real issue, I don't know where to find res, or what should I initialize to re
     console.log('psprt val');
     userController.ValidateLogin(req,res,function(userDetails){
        req.user = userDetails;
        return next(null,userDetails);
      });
   }));
  </code></pre>
  
  <p><strong>userController.ValidateLogin</strong> returns error in a format like </p>
  
  <pre><code>userController.ValidateLogin = function(req,res,userDetails) {
      return res.send({ Status:403, Msg: "Not allowed" });
  }
  </code></pre>
  
  <p>But it says res.send not a function as there is res undefined , how to send res so that I have have this kind of message in return</p>