UNPKG

@adonis-agora/authz-react

Version:

React/Inertia bindings for @adonis-agora/authz: AuthzProvider, useAuthz, useCan, <Can>, and a server-side buildAuthzShare() for the Inertia share.

14 lines • 686 B
// Client-safe barrel. Deliberately excludes `./share.js` (server, imports // `@adonis-agora/authz`'s `AuthzService`) — that ships under the separate // `@adonis-agora/authz-react/server` subpath so it never lands in the client // bundle. See `./share.ts`. // Componente de gating. export { Can } from './components/can.js'; // Wildcard matcher — client-safe port of the core's `permission_matcher.ts`. export { permissionMatches, permissionSatisfied } from './matcher.js'; // Contexto opcional. export { AuthzContext, AuthzProvider } from './provider.js'; // Hooks. export { useAuthz } from './use_authz.js'; export { useCan } from './use_can.js'; //# sourceMappingURL=index.js.map