Skip to content

Function: useRbac() ​

ts
function useRbac(): RbacChecker;

Defined in: packages/react/src/context.tsx:42

Returns the checker of the nearest RbacProvider. Throws when there is none.

Returns ​

RbacChecker

Released under the MIT License. Inspired by spatie/laravel-permission.