Passport auth callback instead of redirect
<pre><code>passport.authenticate('local-register',{
            successRedirect: '/login',
            failureRedirect: '/path_to_greatness',
        })(req, res, next);
</code></pre>

<p>I'm writing an API which is stateless so above method like successRedirect won't suite my needs. But I still want to use passport layer, how do I have a callback?</p>