Skip to content

Instantly share code, notes, and snippets.

@nanusdad
Last active December 20, 2015 03:49
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 nanusdad/6066498 to your computer and use it in GitHub Desktop.
Save nanusdad/6066498 to your computer and use it in GitHub Desktop.
Meteor : authenticate call back example
// This goes in the client sub directory or use Meteor.isClient check
// http://docs.meteor.com/#meteor_isclient
Meteor.call('authenticate', user, pswd, function(err, res) {
if(err) {
console.log('error trying login');
}
else {
console.log(res);
Session.set('logged_in_user', user);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment