Skip to content

Commit

Permalink
fix: auth redirect loop
Browse files Browse the repository at this point in the history
  • Loading branch information
j4w8n-malynium committed Apr 9, 2024
1 parent dfe2383 commit 1a5d87a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

0 comments on commit 1a5d87a

Please sign in to comment.