Sync / foldkit-durable

AuthorizationDecision

type · packages/durable/src/journal.ts:186

type AuthorizationDecision =
  | boolean
  | {
      readonly allowed: false
      readonly reason: string
    }

What authorize answers. true allows and false refuses; the object form refuses with the rule's own reason, which reaches the caller on OperationRejectedError.reason.