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

Exception with Google #79

Open
kevindente opened this issue Feb 10, 2012 · 1 comment
Open

Exception with Google #79

kevindente opened this issue Feb 10, 2012 · 1 comment

Comments

@kevindente
Copy link

I tried integrating mongoose-auth into my app using the Google provider. It works until the callback, when I get an exception

TypeError: Cannot call method 'match' of undefined
at /Users/kevind/Documents/NodeApps/gtp/node_modules/mongoose-auth/node_modules/everyauth/lib/modules/google.js:47:32
at /Users/kevind/Documents/NodeApps/gtp/node_modules/mongoose-auth/node_modules/everyauth/lib/step.js:98:21

The exception comes out of the .convertErr step, which is calling .match on the property data.data, and there is no data.data field. At first I thought it was how I was using it, but I tried the example app and got the same exception.

@kevindente
Copy link
Author

I should add I'm unclear if this is an issue in Mongoose-auth or everyauth. Let me know if I should report it elsewhere.

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

1 participant