A collection of React hooks for interacting with Cerbos policy decision points.
Function |
Description |
---|---|
A component to provide a Cerbos client to your application's components. | |
A hook to access the Cerbos client passed down by the CerbosProvider(). | |
Check the principal's permissions on a resource. | |
Check the principal's permissions on a set of resources. | |
Check if the principal is allowed to perform an action on a resource. |
Interface |
Description |
---|---|
Props for the CerbosProvider() component. |
Type Alias |
Description |
---|---|
The result of calling an async method on a client. |