Skip to content

Instantly share code, notes, and snippets.

@spencercarli
Created February 14, 2016 20:48
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/39e75acaf9bbb7b4e174 to your computer and use it in GitHub Desktop.
Save spencercarli/39e75acaf9bbb7b4e174 to your computer and use it in GitHub Desktop.
Meteor Authentication from React Native - posts.js
// meteor-app/both/posts.js
'addPost': function() {
Posts.insert({
title: 'Post ' + Random.id(),
userId: this.userId
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment