mongoose-auth icon indicating copy to clipboard operation
mongoose-auth copied to clipboard

Exception with Google

Open kevindente opened this issue 13 years ago • 1 comments

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 avatar Feb 10 '12 17:02 kevindente

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.

kevindente avatar Feb 10 '12 20:02 kevindente