Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findOrCreate Error #17

Open
ajachu opened this issue Dec 28, 2013 · 2 comments
Open

findOrCreate Error #17

ajachu opened this issue Dec 28, 2013 · 2 comments

Comments

@ajachu
Copy link

ajachu commented Dec 28, 2013

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
Copy link
Author

ajachu commented Dec 28, 2013

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...

@alexbaumgertner
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants