Skip to content

Instantly share code, notes, and snippets.

@spencercarli
Created March 9, 2016 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencercarli/98cc8f295a4e00411eb9 to your computer and use it in GitHub Desktop.
Save spencercarli/98cc8f295a4e00411eb9 to your computer and use it in GitHub Desktop.
Connecting the Meteor and React Native Apps - google-oauth.js
// MeteorApp/server/google-oauth.js
const settings = Meteor.settings.google;
if (settings) {
ServiceConfiguration.configurations.remove({
service: 'google'
});
ServiceConfiguration.configurations.insert({
service: 'google',
clientId: settings.clientId,
secret: settings.secret,
validClientIds: Meteor.settings.google.validClientIds
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment