import { getSession } from '$lib/server/auth'; import type { LayoutServerLoad } from './$types'; export const load: LayoutServerLoad = async (event) => { const session = await getSession(event); return { session: session ? { did: session.did } : null }; };