diff --git a/packages/accounts/accounts_client.js b/packages/accounts/accounts_client.js index 32d690a533..d39534c326 100644 --- a/packages/accounts/accounts_client.js +++ b/packages/accounts/accounts_client.js @@ -17,12 +17,14 @@ } }; - Meteor.logout = function () { + Meteor.logout = function (callback) { Meteor.apply('logout', [], {wait: true}, function(error, result) { if (error) throw error; - else + else { Meteor.accounts.makeClientLoggedOut(); + callback && callback(); + } }); };