session-role-manager
Session Role Manager is the Session-based role manager for node-casbin. With this library, node-casbin can load session-based role hierarchy (user-role mapping) from Casbin policy or save role hierarchy to it. The session is only active in the specified time range.
Installation
# Yarn yarn add session-role-manager# NPM npm install session-role-manager --save
Example
;; app;