bnoguchi/mongoose-auth — Issue #79: Exception with Google
Author: kevindente
Created: 2012-02-10 17:30:49+00:00
State: open

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.