From 1a5d87a41ca06ee7f17cafc1ed131334f708ec62 Mon Sep 17 00:00:00 2001 From: Jason Creviston Date: Tue, 9 Apr 2024 06:59:43 -0400 Subject: [PATCH] fix: auth redirect loop --- src/routes/+layout.server.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 256108c..a28251d 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -3,7 +3,5 @@ import { redirect } from '@sveltejs/kit' export const load = async ({ locals: { getSession } }) => { const session = await getSession() - if (!session) redirect(307, '/auth') - return { session } } \ No newline at end of file