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); };