diff --git a/server/middleware.ts b/server/middleware.ts index 2cb60675d..11d65cc5f 100644 --- a/server/middleware.ts +++ b/server/middleware.ts @@ -57,6 +57,7 @@ export function protect({ cause: null, message: "Session might have expired. Please log in again.", label: "Auth", + shouldBeCaptured: false, }) ); return c.redirect(`${onFailRedirectTo}?redirectTo=${c.req.path}`);