Home > @cerbos/core > Options
Options for creating a new Client.
Signature:
export interface Options
Property |
Modifiers |
Type |
Description |
---|---|---|---|
AdminCredentials | undefined |
(Optional) Credentials for the admin API. | ||
HeadersInit | (() => HeadersInit | Promise<HeadersInit>) | undefined |
(Optional) Headers to add to every request to the policy decision point. | ||
"throw" | ValidationFailedCallback | undefined |
(Optional) Action to take when input fails schema validation. | ||
string | undefined |
(Optional) Identifier of the playground instance to use when prototyping against the hosted demo policy decision point. | ||
string | undefined |
(Optional) Custom user agent to prepend to the built-in value. |