Reading: <Login />
and <Auth />
Reading
What is Role Based Access Control (RBAC)
What is Role Based Access Control (RBAC)?
RBAC is a method of controlling access to resources by assigning roles to users and granting access based on those roles.
Share some an example of RBAC including all possible CRUD operations and correlating roles.
An example of RBAC would be an e-commerce website where users have different access to functionality based on their role, an Admin can CRUD products and handle customer’s data, while a Customer can only read products and make an order.
What are the Benefits of RBAC?
Benefits of RBAC include improved security and ease of managing access to resources.
Compare and Contrast the following two Libraries and the following questions. Yes, they are similarly named.
Describe some react-cookie features.
- react-cookie has feature such as handling multiple values in a single cookie and server-side rendering support.
- react-cookie has feature of handling browser cookies in a React application.
- react-cookie has feature of providing clear and consistent API for working with cookies in your react application.
Describe some react-cookies features.
- react-cookies has a feature of simple React component that allows you to save and retrieve data to/from browser cookies.
- react-cookies has a feature of easy to use, can be used to save data on the client side without need for additional dependencies.
- react-cookies has a feature of implemented as a Higher Order Component, it provides access to browser cookies.
Which library would you prefer would you prefer? Why?
react-cookies - my preference is to drop components into an application, and the features found in a library I prefer to create on my own so I can make them fit my needs.