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
- Host: GitHub
- URL: https://github.com/gwendall/meteor-auth-client-callbacks
- Owner: gwendall
- Created: 2014-11-13T07:53:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T14:20:22.000Z (almost 7 years ago)
- Last Synced: 2025-04-04T22:46:58.611Z (about 2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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.");
});
```