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

Error by calling /auth/google/callback?code=...

Open Jehu opened this issue 13 years ago • 1 comments

By accessign the callback-route after grant google access, an error is thrown:

TypeError: Object function model() { Model.apply(this, arguments); } has no method 'createWithGoogleOAuth' at Promise. (my/app/path/node-modules/mongoose-auth/lib/modules/google/everyauth.js:13:12) ...

Any ideas?

Jehu avatar Jan 22 '12 17:01 Jehu

check your scope. it should be scope: 'https://www.googleapis.com/auth/userinfo.email'

i had a similar issue and this fixed it.

rohitcolinrao avatar Feb 07 '12 00:02 rohitcolinrao