1 2 3 4 5 6
import { requireAuth } from "#lib/auth/guards.ts"; import type { LayoutServerLoad } from "./$types"; export const load: LayoutServerLoad = (event) => { requireAuth(event); };