Nodejs newbie here working on my first passport authentication based full stack project for learning. Forgive me if my question is not clear.
There are 2 parts of my project. 1 server side which runs on port 3000 and uses express, and 1 client side based on react-redux that runs on port 8080. My client side has the "Sign in with twitter" button which redirects the user to server side "/auth/twitter" path for authentication.
My problem is with the callback which is "/auth/twitter/callback" and is on the server. I want to use the user object (twitter name and stuff) on my client side.
I don't know how to send response with user data back to client which is on a totally different server (and thus just routing with successRedirect: '/home/ won't work)
Any hint is appreciated. Stuck on this problem since last 2 days.
via jait
No comments:
Post a Comment