0.1.2 • Published 4 years ago
@nikolairoll/auth v0.1.2
@nikolairoll/auth
auth provides a simple authorization framework without much overhead for abac & rbac
1. Installation
$ npm install @nikolairoll/auth
2. Usage
Currently, only a lazy evaluation engine is available.
Interface of versions <1.0.0 change with any update.
const engine = makeEngine({conditions, roles});
const session = engine.withContext(context).withUser(currentUser);
if(session.authorize("post:read", post)) {
...
3. Further Information
For further information and/or new versions got to GitHub