title: how to send json as a response after passport authenticationin node.js
body: <p>I am trying this <a href="https://github.com/manjeshpv/node-express-passport-mysql/blob/master/config/passport.js" rel="noreferrer">git example</a>.</p>
  
  <p>Which works well when I integrated it with my project, but what I want to achieve is to send json as a response to the client/request, instead of successRedirect : '/profile' &amp; failureRedirect : '/signup'.</p>
  
  <p>Is it possible to send a json, or is there some other methods to get the same?</p>
  
  <p>Any help will be appreciated,TU</p>