Closed francesco-clementi-92 closed 3 years ago
I'm building a react app with an express js server.
I correctly implemented CASL on the express js server and I'm trying to integrate casl on the react app.
With the login api I already have the abilities built by the express js server, so I have the following object:
{permissions: { O: {}, g: [{…}], j: {User: {…}}, p: {}, s: false, v: {} } }
How can I integrate this in the react app?
There is react-blog folder/example that integrates react app with express and casl
I'm building a react app with an express js server.
I correctly implemented CASL on the express js server and I'm trying to integrate casl on the react app.
With the login api I already have the abilities built by the express js server, so I have the following object:
{permissions: { O: {}, g: [{…}], j: {User: {…}}, p: {}, s: false, v: {} } }
How can I integrate this in the react app?