auth-manager
v0.5.0
Published
Cookie-based auth manager for React applications
Downloads
148
Readme
AuthManager
Installation
yarn add auth-manager
Usage
import AuthManager from 'auth-manager';
AuthManager.login({ id: 1 }, 60);
// Elsewhere
AuthManager.isLoggedIn();
AuthManager.getUser();
AuthManager.logout();