mongoose-auth
mongoose-auth copied to clipboard
Error by calling /auth/google/callback?code=...
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.
Any ideas?
check your scope. it should be scope: 'https://www.googleapis.com/auth/userinfo.email'
i had a similar issue and this fixed it.