-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facebook login state missing #53
Comments
Hi Revin, Thanks! I know that the FB login is not working properly atm. It's up to you on how you want to store the token, and cookies are fine. |
Ok thanks , i'm working on it , i'll post it once its done |
Got it working with the cookie-parser First install Cookie-parser
at config/passport.js remove all react cookie and cookies.save methods at server.dev.js add at routes/user_routes.js replace the route that listen to the facebook callback so instead of this
do this :
and finally at server.dev.js replace
by this 👍
not the optimal move , since we could leverage the express session or put the token on the header but definitely works |
Hi , first of all good job , nice clean work !
Can you please tell me if you tested the facebook login feature?
I tried to login via facebook and after facebook login callback is called , the state doesn't change .
i digged a bit the question and found out that on the server side a couple of lines were missing.
React-cookie form what i could read uses the cookie parser middleware of express which is not even installed
then you have to call reactCookie.plugToRequest(req, res); to attach cookies to the requests and responses
do you think that this is the best thing to do in this case? or should i wire it up directly to global variable used in index.html
Thanks
The text was updated successfully, but these errors were encountered: