diff options
| author | Shreyans Jain <[email protected]> | 2025-08-24 06:55:26 +0530 |
|---|---|---|
| committer | Shreyans Jain <[email protected]> | 2025-08-24 06:55:26 +0530 |
| commit | fe552056f4a864d4cfe46ebc2176dfeb85c71cb8 (patch) | |
| tree | 75d15627a9024981069d4b988f881d712db11499 | |
| parent | ci: add ai-sdk publish (#381) (diff) | |
| download | archived-supermemory-shreyans/08-24-fix_attempt_to_fix_auth.tar.xz archived-supermemory-shreyans/08-24-fix_attempt_to_fix_auth.zip | |
fix: attempt to fix authshreyans/08-24-fix_attempt_to_fix_auth
| -rw-r--r-- | apps/web/middleware.ts | 4 |
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 |