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
Post a Comment