fix(GRO-778): exempt /dev-session from validatePortalSession middleware #329

Merged
the-dogfather-cto[bot] merged 4 commits from fix/gro-778-portal-dev-session into dev 2026-04-17 21:54:33 +00:00
Showing only changes of commit b980e4177c - Show all commits
+3 -1
View File
@@ -9,7 +9,9 @@ import type { PortalEnv } from "../middleware/portalSession.js";
export const portalRouter = new Hono<PortalEnv>();
// Apply middleware to all portal routes
// Apply middleware to all portal routes — NOTE: /dev-session is registered BEFORE this line
// so it is NOT subject to validatePortalSession/portalAudit (this is intentional: the endpoint
// creates the impersonation session and has no X-Impersonation-Session-Id header yet).
portalRouter.use("/*", validatePortalSession, portalAudit);
// ─── GET routes ──────────────────────────────────────────────────────────────