Optional
defaultOptional
_: ResultOptional
defaultDefault input for every decision, merged with any passed-in input. Use the latter to override the defaults.
Optional
defaultDefault path for every decision. Override by providingpath
.
The @styra/opa
OPAClient instance to use.
The @tanstack/react-query
client that's used for scheduling policy evaluation requests.
The default function to apply to the policy evaluation result to get a boolean decision. It can be overridden from
Authz
anduseAuthz
. If unset, any non-undefined, non-false (i.e. "truthy") result will be taken to mean "authorized".