User Exit Meteor

In my project, I need to call the callback function in User -> Sign out to set the session value to "null".

Is there a way to override the behavior of Meteor.logout() ? How to provide this callback function?

thanks

+8
javascript meteor
source share
1 answer

The Meteor.logout () function has a callback function.

http://docs.meteor.com/#meteor_logout

 Meteor.logout(function(err) { // callback Session.set("ses",false); }); 

-

 Template.tplName.events "click #logout": (e, tmpl) -> Meteor.logout -> Session.set "ses", false 
+21
source share

All Articles