An open API service indexing awesome lists of open source software.

https://github.com/gwendall/meteor-auth-client-callbacks

Adds client-side onLogin and onLogout methods
https://github.com/gwendall/meteor-auth-client-callbacks

Last synced: about 2 months ago
JSON representation

Adds client-side onLogin and onLogout methods

Awesome Lists containing this project

README

        

```diff
- NOTE: This package is not maintained anymore.
- If you want to help, please reach out to [email protected]
```

Meteor Auth Client Callbacks
============================

Adds client-side onLogin and onLogout callbacks.

Installation
------------

``` sh
meteor add gwendall:auth-client-callbacks
```

Methods
-------

**Accounts.onLogin(callback)**
Callback called whenever the client logs in.
```javascript
Accounts.onLogin(function() {
console.log("I just logged in.");
});
```

**Accounts.onLogout(callback)**
Callback called whenever the client logs out.
```javascript
Accounts.onLogout(function() {
console.log("I just logged out.");
});
```