r/reactjs • u/swyx • Aug 01 '18
Beginner's Thread / Easy Question (August 2018)
Hello! It's August! Time for a new Beginner's thread! (July and June here)
Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple. You are guaranteed a response here!
Want Help on Code?
Improve your chances by putting a minimal example on to either JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new). Describe what you want it to do, and things you've tried. Don't just post big blocks of code.
Pay it forward! Answer questions even if there is already an answer - multiple perspectives can be very helpful to beginners. Also there's no quicker way to learn than being wrong on the Internet.
New to React?
Here are great, free resources!
1
u/honxyz Aug 29 '18
Hello does anyone have a project where they have used , Passport JS with local strategy, and a React App?
I'm having a problem with deserializeUser it never gets called, serializeUser is getting called successfully. When I test with curl and use -b flag to send a cookie, deserializeUser is called.
So I suspect that the client is not sending the cookie to the server. Using Chrome dev tools, I don't see cookie in the request headers, so I assume that means no cookie is sent. I'm using axios to make my requests.
My code is a bit of a mess so I have not posted an example.