Some background: #152
As Node-Casbin not only targets for Node.js but also targets for browser, the current async API is not very friendly for browser use (like conditional rendering a React component).
So we need to prepare a full set of Sync API. This is an very important feature for Casbin to be used smoothly in browser.
Some background: #152
As Node-Casbin not only targets for Node.js but also targets for browser, the current async API is not very friendly for browser use (like conditional rendering a React component).
So we need to prepare a full set of Sync API. This is an very important feature for Casbin to be used smoothly in browser.