express - how to send json as a response after passport authenticationin node.js -



express - how to send json as a response after passport authenticationin node.js -

i trying git example.

which works when integrated project, want accomplish send json response client/request, instead of successredirect : '/profile' & failureredirect : '/signup'.

is possible send json, or there other methods same?

any help appreciated,tu

create new route, e.g.: /jsonsend res.json in , create successredirect: '/jsonsend'. should it.

node.js express passport-facebook passport-local

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -