Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Facebook Authentication should do a patch not an update. #174
Using a feathers-cli generated app with mongodb, if the user model has more fields (other than facebook-id and facebook data), all those fields gets erased when the user authenticates.
This happens because the authentication proccess updates the social information of the user by sending a full update to the user service, thus eliminating any other field the user may have. I think should be better to patch the user instead of updating it.
Do one of you want to try changing this line to do patch instead of update?: https://github.com/feathersjs/feathers-authentication/blob/master/src/services/oauth2/index.js#L63
And see if it resolves the issue? Thanks.