Node.js + Express.js User Permission Security Model

后端 未结 4 1771
一生所求
一生所求 2020-12-12 08:50

We have an application that has two types of users. Depending on how the user logs in, we want them to have access to different parts of the application.

How do we i

4条回答
  •  醉酒成梦
    2020-12-12 09:10

    You can use ability-js with everyauth, which is quite similar to CanCan for Rails https://github.com/scottkf/ability-js

提交回复
热议问题