@life365/auth
v0.0.11
Published
Life365 js authentication modules
Downloads
2
Readme
Life365 js authentication modules
Usage
Set variables:
const AUTH = {"AUTH_API": "...", "AUTH_DECODE_API": "...", "ROLES": ["admin", "warehouse"], "USER": null};
Then enjoy:
import {Authify, useUser} from '@life365/auth';
...
ReactDOM.render(
<Authify logoutButtonEl={document.getElementById('logout-button')}>
<MainPanel />
</Authify>,
document.getElementById('main')
);