mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
fix: attempt to fix auth
This commit is contained in:
parent
15b98cd071
commit
fe552056f4
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue