compound-passport icon indicating copy to clipboard operation
compound-passport copied to clipboard

findOrCreate Error

Open ajachu opened this issue 11 years ago • 2 comments

Getting this error on /callback... using facebook strategy TypeError: Cannot call method 'findOrCreate' of undefined at Strategy.exports.callback as _verify

Also what would be the simplest way to override say /strategies/facebook.js or more precisely the callback to be used on facebook.js strategy

Please help!

ajachu avatar Dec 28 '13 03:12 ajachu

Also I am not interested in persisting the session.... and also at this point I dont have a User model in my app. All I want to do is check out oAuth using passport in a simple demo app...

ajachu avatar Dec 28 '13 04:12 ajachu

I have the same problem like you. I didn't have the "User" model. After I have created it, authentication started to work properly. Just try to run command like this: compound g model user email password approved:boolean, and check you code.

alexbaumgertner avatar Jun 14 '14 19:06 alexbaumgertner