Open engalexandre opened 6 years ago
I would like to thank everyone who doesn't know me but my family and Scott's ,really...I am in disbelief right now and sadden by what I have been reading the last few days trying to safeguard my accounts to find out it was Family.
Seems like theres something wrong with either Passport/FB Strategy or the way I used to separate my routes.
My callback returns a "sucessfull" 500. Also, Facebook now requires that even on dev mode we run a SSL server, so heres my attempt (some parts ommited for brevity):
//index.js
//passportconf.js
//manufacturer.js
//user.js (routes for authenticating)
If i try: https://localhost:3000/manufacturer/1, I get a 'sucessfull' callback with my profile data and stuff, but for some reason, im getting error 500, returning this:
{"title":"500: Internal Server Error","error":{"id":4,"facebookid":xxxxxx,"name":"xx xx","token":"Big token ommited for brevity","email":"whatever@dotcom.com","userprovider_id":1}}
userprovider_id is a custom field of my database.
Anyone is having a similar problem?