Adds client-side onLogin and onLogout methods
- NOTE: This package is not maintained anymore.
- If you want to help, please reach out to [email protected]
Adds client-side onLogin and onLogout callbacks.
meteor add gwendall:auth-client-callbacks
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.");
});