You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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...
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.
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!
The text was updated successfully, but these errors were encountered: