0.1.2 • Published 4 years ago

@nikolairoll/auth v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@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

0.1.2

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago