stalniy / casl-examples

CASL examples, integration with different frameworks
MIT License
108 stars 65 forks source link

Manage abilities already built on backend #11

Closed francesco-clementi-92 closed 3 years ago

francesco-clementi-92 commented 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?

stalniy commented 3 years ago

There is react-blog folder/example that integrates react app with express and casl