Created
March 9, 2016 01:42
-
-
Save spencercarli/98cc8f295a4e00411eb9 to your computer and use it in GitHub Desktop.
Connecting the Meteor and React Native Apps - google-oauth.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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