Type Alias: Impersonation
Impersonation = {
kind:"role";roleKey:string|null; } | {contractorId:string;kind:"contractor"; }
Defined in: src/server/auth/impersonation-codec.ts:7
Pure (no I/O) encoding + resolution for the "View as" impersonation lens. Kept dependency-free so it is unit-testable and shared by the cookie reader and the access layer.