Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
TypeScript
12345678910111213import { 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 };};