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/389b5b181fbcfb61c517 to your computer and use it in GitHub Desktop.
Save spencercarli/389b5b181fbcfb61c517 to your computer and use it in GitHub Desktop.
Connecting the Meteor and React Native Apps - ddp.js
// RNApp/app/ddp.js
ddpClient.loginWithGoogle = (user, cb) => {
let params = { google: user };
return ddpClient.call("login", [params], (err, res) => {
ddpClient.onAuthResponse(err, res);
cb && cb(err, res)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment