OptionalactivateWhether to activate updated policy bundles as soon as they are downloaded.
If false, new bundles will be downloaded automatically but not used to evaluate policy decisions until you call PolicyLoader.activate.
This might be useful if you want to activate updates only on page transitions to avoid layout shifts in your application.
OptionalbaseBase URL of the Cerbos Hub server.
OptionalcredentialsClient credentials to authenticate with Cerbos Hub.
OptionalheadersHeaders to add to every request to the policy decision point.
Headers can be included in the policy decision point's audit logs by setting the includeMetadataKeys or excludeMetadataKeys fields in the
audit configuration block.
The User-Agent header is set using Options.userAgent.
OptionalintervalThe delay (in seconds) between successive requests to check for policy bundle updates.
OptionalonA callback to invoke when a policy bundle update has finished.
ID of the policy bundling rule.
OptionalscopesScopes to include in the policy bundle.
OptionaluserCustom user agent to prepend to the built-in value.
Options for creating a PolicyLoader.