fix: attempt to fix auth

This commit is contained in:
Shreyans Jain 2025-08-24 06:55:26 +05:30
parent 15b98cd071
commit fe552056f4
No known key found for this signature in database

View file

@ -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