Micah Brandon

Results 6 comments of Micah Brandon

What exactly is at and around line 18 of your passport.js file? You've pasted a lot but really can't tell without line numbers. It's not 'id' that's null, but something...

I would look at this User.create() method and see if it's returning a 'user'...assuming you're getting that far down in the method. Your FacebookStrategy is where you need to look...

No sorry, I didn't mean move anything. You already have User.create() that is supposed to create a user if one isn't found. It takes your 'data' and tries to create...

Seriously? Your 'user' variable is false. I'm trying to direct you where that could be. But I'm not going to waste my time anymore after that response. Good luck to...

Why not simply add a fake 'id' property to your data var like provider, uid, and username? Just to see if it works. Since you are just testing with fake...

Understand that the serialize and deserialize are used for sessions. If you don't need a session, you can give the {session: false} option to your passport.authenticate() line like this: passport.authenticate('facebook',...