feathersjs-ecosystem / authentication-oauth2

[MOVED] OAuth 2 plugin for feathers-authentication
https://github.com/feathersjs/feathers
MIT License
26 stars 15 forks source link

I got Internal error when I log in with google #63

Closed annibuliful closed 6 years ago

annibuliful commented 6 years ago

I log in with Google user. in the first time I got a normal message. in the second time I got error message that cannot login

screen shot 2560-12-27 at 15 33 10 screen shot 2560-12-27 at 15 33 35 screen shot 2560-12-27 at 15 33 05

I got this error after I try to login with a Google user screen shot 2560-12-27 at 15 36 16

NodeJS version: "feathers": "^2.2.3", "feathers-authentication": "^1.3.1", "feathers-authentication-hooks": "^0.1.5", "feathers-authentication-jwt": "^0.3.2", "feathers-authentication-local": "^0.4.4", "feathers-authentication-oauth2": "^0.3.2", "feathers-configuration": "^0.4.2", "feathers-errors": "^2.9.2", "feathers-hooks": "^2.1.2", "feathers-hooks-common": "^3.10.0", "feathers-mongoose": "^5.1.2", "feathers-rest": "^1.8.1", "feathers-socketio": "^2.0.1", "feathers-sync": "^0.1.4", "helmet": "^3.9.0", "mongoose": "^4.13.4", "nodemailer": "^4.4.0", "passport-google-oauth": "^1.0.0", "passport-google-oauth2": "^0.1.6", "passport-google-oauth20": "^1.0.0", "serve-favicon": "^2.4.5", "uuid": "^3.1.0", "winston": "^2.4.0"

annibuliful commented 6 years ago

I removed restrictToOwner() from authentication service's hook to fix it