role-handler-nt
v0.5.1
Published
Handler for role verification.
Downloads
4
Readme
RoleHandler
Simple module that is caching roles using lokijs.
Installation
$ yarn install role-handler-nt --save
Documentation
- inMemoryGo(arrRoles)
- Description : Caching the roles.
- @param {Array} arrRoles
- @return {Promise}
- check(roleLabel, module, action)
- Description : Check the role
- @param {string} roleLabel
- @param {string} module
- @param {string | number} action
- @return {boolean}