Skip to content

Instantly share code, notes, and snippets.

@andrerfneves
Created March 2, 2015 19:30
Show Gist options
  • Save andrerfneves/8cff07d7356593e8a612 to your computer and use it in GitHub Desktop.
Save andrerfneves/8cff07d7356593e8a612 to your computer and use it in GitHub Desktop.
accounts.js
Meteor.startup(function() {
ServiceConfiguration.configurations.remove({service: 'meteor-developer'});
ServiceConfiguration.configurations.insert({
service: 'meteor-developer',
clientId: Meteor.settings.meteorDeveloper.clientId,
secret: Meteor.settings.meteorDeveloper.secret
});
});
Accounts.onCreateUser(function(options, user) {
user.emails = user.services['meteor-developer'].emails;
user.profile = options.profile;
return user;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment