From f8c81ff95f3d06d71c9b4793904a07f8bbb6e7db Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 22 Jun 2021 11:54:19 +0200 Subject: [PATCH] Nooo --- src/hooks/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/index.ts b/src/hooks/index.ts index 3526ba6a0..616de4db0 100644 --- a/src/hooks/index.ts +++ b/src/hooks/index.ts @@ -98,7 +98,7 @@ export async function handle({ request, resolve }) { try { session = initializeSession(request.headers, { secret: SECRETS_ENCRYPTION_KEY, - cookie: { path: '/' } + cookie: { path: '' } }); } catch (error) { console.log(error) @@ -112,7 +112,7 @@ export async function handle({ request, resolve }) { } request.locals.session = session; - console.log(session.data) + if (session?.data?.coolToken) { try { await verifyUserId(session.data.coolToken);