This hook provides more flexibility than the <Authz/> component, allowing you to work with authorization decisions directly in your code.
<Authz/>
Optional
The policy path. If unset, will be evaluating the server's default decision.
The input to the policy evaluation.
Optional result unwrapping function.
For evaluating a dynamic number of requests, useAuthz can be supplied with an array of inputs of the form {path, input, fromResult}.
useAuthz
{path, input, fromResult}
An array of { path, input, fromResult } objects. All keys are optional, but if batching is enabled, path cannot be omitted.
{ path, input, fromResult }
path
This hook provides more flexibility than the
<Authz/>
component, allowing you to work with authorization decisions directly in your code.