Skip to content

BrowserDecideOptions

BrowserDecideOptions = object

Per-call options for client.decide.

optional context?: Record<string, unknown>

Facts about the page, such as the article’s id or access level, that a canvas reads under context.*. The engine reads them at the unverified tier, exactly as sent.

Anyone can set any value here. The values come from a browser, so a rule that grants access on one of them can be bypassed by the user. The engine never merges them with signed content facts, and a deploy warns on every rule that reads them.

This is the only way a browser can describe the article it is deciding about: this client sends no signed content facts. For a fact the user cannot forge, decide from your backend with @edgekitcloud/client-server.


optional signal?: AbortSignal

Cancels the request early. The timeoutMs timeout still applies.