Skip to content

Instantly share code, notes, and snippets.

@aaronthorp
Created January 13, 2014 12:12
Show Gist options
  • Save aaronthorp/8399260 to your computer and use it in GitHub Desktop.
Save aaronthorp/8399260 to your computer and use it in GitHub Desktop.
Meteor - logoutOtherClients()
Meteor.autorun(function() {
if (Meteor.user()) {
Meteor.logoutOtherClients(function(err) {
if (err)
console.log("Logout Error: " + err);
});
console.log("login");
} else {
console.log("logout");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment