I'm using passport-google-oauth20 without sessions since this backend will be used for mobile too. When hitting the strategy callback I can either create a user if he doesn't exist and send that profile back, or if he does exists, simply send that user back.However, on the client side, I will be redirecting a user to different routes depending on whether he's a brand new user or an existing one. How can I send this info from the strategy callback, back to the client? Is this possible?
Submitted April 19, 2019 at 01:52AM by marbles12
No comments:
Post a Comment