This repository has no description
1import { getPublicConfig } from "$lib/server/config";
2import type { LayoutServerLoad } from "./$types";
3
4export const load: LayoutServerLoad = ({ cookies }) => {
5 const did = cookies.get("tangled.currentDid");
6 const handle = cookies.get("tangled.currentHandle");
7
8 return {
9 publicConfig: getPublicConfig(),
10 auth: did ? { did, handle: handle ?? did } : null
11 };
12};