daccred / wyre

Open Expense Payroll Infrastructure
https://wyre.tecmie.africa
MIT License
4 stars 1 forks source link

Roles and Permissions Draft #87

Open koolamusic opened 1 year ago

koolamusic commented 1 year ago

https://casl.js.org/v6/en/package/casl-prisma

koolamusic commented 1 year ago

https://authjs.dev/guides/basics/role-based-access-control

Also taking a look at this for persisting roles and also https://authjs.dev/guides/basics/securing-pages-and-api-routes for securing routes using middleware

koolamusic commented 1 year ago

And another example here using callbacks https://next-auth.js.org/configuration/nextjs#advanced-usage