From 2ec0a90c0e6bf503ff827d13eebf362b18543d8b Mon Sep 17 00:00:00 2001 From: Craig Kaiser Date: Mon, 14 Oct 2024 23:12:40 -0400 Subject: [PATCH] add back redirect --- src/hooks.server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 27cbbda..d22e08f 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -71,9 +71,9 @@ const authGuard: Handle = async ({ event, resolve }) => { return redirect(303, '/auth'); } - // if (event.locals.session && event.url.pathname === '/auth') { - // return redirect(303, '/protected-routes/dashboard'); - // } + if (event.locals.session && event.url.pathname === '/auth') { + return redirect(303, '/protected-routes/dashboard'); + } return resolve(event); };