import { getPublicConfig } from "$lib/server/config"; import type { LayoutServerLoad } from "./$types"; export const load: LayoutServerLoad = ({ cookies, platform }) => { const did = cookies.get("tangled.currentDid"); const handle = cookies.get("tangled.currentHandle"); return { publicConfig: getPublicConfig(platform), auth: did ? { did, handle: handle ?? did } : null }; };