Skip to content

GateDecision

GateDecision = { allow: true; grant: StreamGrant; subject: string; } | { allow: false; reason: string; }

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

{ allow: true; grant: StreamGrant; subject: string; }

allow: true

grant: StreamGrant

subject: string

The token’s subject. Carried on the decision because the egress transform stage needs it and re-verifying the token to recover it would pay for a second HMAC on every rewritten read — the verification that established it already happened here.


{ allow: false; reason: string; }