mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This is an internal function only used by OAuth implementations and the equivalent, so rename to a more specific name: Accounts.updateOrCreateUserFromExternalService. Change the signature to directly take serviceName and serviceData instead of a nested data structure with a very specific structure. Similarly, change Accounts.oauth.registerService's handleOauthRequest callback to un-nest the service data. Throw errors on misuse (if you try to use it with the "password" or soon-to-be-introduced "resume" services, or if you don't provide an id). Avoid doing no-op user updates if there is nothing new in "extra".
1.3 KiB
1.3 KiB