aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreyans Jain <[email protected]>2025-08-24 06:55:26 +0530
committerShreyans Jain <[email protected]>2025-08-24 06:55:26 +0530
commitfe552056f4a864d4cfe46ebc2176dfeb85c71cb8 (patch)
tree75d15627a9024981069d4b988f881d712db11499
parentci: add ai-sdk publish (#381) (diff)
downloadarchived-supermemory-shreyans/08-24-fix_attempt_to_fix_auth.tar.xz
archived-supermemory-shreyans/08-24-fix_attempt_to_fix_auth.zip
-rw-r--r--apps/web/middleware.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts
index 8658c0d8..709090c1 100644
--- a/apps/web/middleware.ts
+++ b/apps/web/middleware.ts
@@ -8,7 +8,9 @@ export default async function middleware(request: Request) {
console.debug("[MIDDLEWARE] Path:", url.pathname);
console.debug("[MIDDLEWARE] Method:", request.method);
- const sessionCookie = getSessionCookie(request);
+ const sessionCookie = getSessionCookie(request, {
+ path: "/",
+ });
console.debug("[MIDDLEWARE] Session cookie exists:", !!sessionCookie);
// Always allow access to login and waitlist pages