Wednesday 24 May 2017

Q: Passort.js & Facebook

I'm trying to setup facebook authentication. I have a 'profile' table that stores relevent user information ( name, age, weight, etc ) and use a UUID for the primary key.For facebook auth, I created a facebook table that stores (facebookUD, profileUUID ) to do the mapping.What I can't figure out is how to get Passport to serialize/deserialize properly so that the req.user is MY user information and not the data from the Facebook authentication.I'm a total newb when it comes to Node.js & Passport.js, so please forgive me is this is a simple task. How do you professionals setup auth & session information like this?

Submitted May 25, 2017 at 01:40AM by lonehiker

No comments:

Post a Comment