1import { getSession } from '$lib/server/auth'; 2import type { LayoutServerLoad } from './$types'; 3 4export const load: LayoutServerLoad = async (event) => { 5 const session = await getSession(event); 6 return { 7 session: session ? { did: session.did } : null 8 }; 9};