I have a web app with React as the frontend and Express as the backend for RESTful APIs. Users can log in using either email/password or Facebook.
When users log in with Facebook, their data does not reach the backend to update(but with the login their email, name saves to the database). However, when testing with Postman, the backend updates data correctly.
How can I ensure that the backend receives and updates data correctly when users log in with Facebook?
- I tried using PUT method
- I tried passing sample data
- I tried creating separate databases for facebook users
But none of them worked. I’m using passport js for facebook login.
Madusha Bandara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.