/meteor-auth-client-callbacks

Adds client-side onLogin and onLogout methods

Primary LanguageJavaScript

The original plugin is not maintained and was failing with Meteor 1.7. This fork fixes that.

Meteor Auth Client Callbacks

Adds client-side onLogin and onLogout callbacks.

Installation

meteor add gwendall:auth-client-callbacks

Methods

Accounts.onLogin(callback) Callback called whenever the client logs in.

Accounts.onLogin(function() {
  console.log("I just logged in.");
});

Accounts.onLogout(callback) Callback called whenever the client logs out.

Accounts.onLogout(function() {
  console.log("I just logged out.");
});