- useAuthz(path?, input?, fromResult?): UseAuthzResult<Result>
Parameters
Optional
path: stringOptional
input: InputOptional
fromResult: ((_?: Result) => boolean)- (_?): boolean
Returns boolean
- useAuthz(queries): UseAuthzResult<Result>[]
Parameters
- queries: {
fromResult?: ((_?: Result) => boolean);
input?: Input;
path?: string;
}[]
This hook provides more flexibility than the
<Authz/>
component, allowing you to work with authorization decisions directly in your code.