OptionalactivateWhether to activate updated embedded policy decision point 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 AutoUpdatingLoader.activate.
This might be useful if you want to activate updates only on page transitions to avoid layout shifts in your application.
To detect whether an update is available to activate, provide an Options.onLoad callback or check the AutoUpdatingLoader.pending property.
OptionaldecodeA function to verify and decode JWTs passed as auxiliary data, returning the JWT payload.
OptionaldefaultDefault policy version to apply to requests that do not specify one.
OptionalglobalsGlobal variables to pass environment-specific information to policy conditions.
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 milliseconds) between successive requests to check for new embedded policy decision point bundles.
OptionallenientEnable lenient scope search?
By default, when a request specifies a scope of a.b.c then a policy must exist with that exact scope.
If lenient scope search is enabled, then the policy decision point will fall back to trying scopes a.b, a, and ""
if a policy with scope a.b.c does not exist.
OptionalnowA function returning the current time, to be used when evaluating policy conditions.
The function can either return a Date or a number of milliseconds elapsed since the Unix epoch.
OptionalonA callback to invoke when a decision is made by the embedded policy decision point.
OptionalonA callback to invoke when the embedded policy decision point bundle has failed to load.
OptionalonA callback to invoke when the embedded policy decision point bundle has been loaded.
OptionaluserCustom user agent to prepend to the built-in value.
Options for creating a new AutoUpdatingLoader.