Once a user is Authenticated, I would like a way to set the restrictions on what a user can view, edit and delete. Specifically, unless they are an Admin, they can view, edit and delete ONLY files that they own. I've seen some examples with EveryAuth and Ability.js, just wondering if there is an equivalent for those using Passport.js
Passport is a popular, modular authentication middleware for Node. js applications. With it, authentication can be easily integrated into any Node- and Express-based app. The Passport library provides more than 500 authentication mechanisms, including OAuth, JWT, and simple username and password based authentication.
Authentication is a process in which the credentials provided are compared to those on file in a database of authorized users' information on a local operating system or within an authentication server. If the credentials match, the process is completed and the user is granted authorization for access.
Might be it can help you in achieving what you want https://github.com/ForbesLindesay/connect-roles
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With