Skip to content

StreamAuthorizationOptions

StreamAuthorizationOptions = Pick<StreamGateOptions, "key" | "entitlements"> & Partial<Omit<StreamGateOptions, "key" | "entitlements">>

Defined in: packages/server/src/circuits/edge.ts:112

What DECIDING one read needs: the signing key, plus the entitlement set the shared tier is checked against.

Spelled as the gate’s options with everything else relaxed to optional, rather than as StreamGateOptions itself, because a caller that wants only the decision — a mount that proxies for itself, a test pinning the authorization rules — has no gate to configure, and requiring it to invent a registry and a durableStreamsUrl would demand values the answer provably does not depend on.