Event or function on login/logout

Just a small question:

Why is this working…

Accounts.onLogin(function() {
  sAlert.success('Login complete!');
});

…while this is crashing the app:

Accounts.onLogout(function() {
  sAlert.success('Logout complete!');
});

Am I missing something?

Note:
This example uses the meteor add juliancwirko:s-alert package for the notifications.

1 Like