start dev

This commit is contained in:
2026-01-18 08:19:01 -06:00
parent 93cfd87821
commit 144cd4787e
18 changed files with 837 additions and 32 deletions
+10
View File
@@ -0,0 +1,10 @@
import type { LayoutServerLoad } from './$types';
import { getUserFromJWT } from '$lib/utils';
export const load: LayoutServerLoad = ({ cookies }) => {
const jwt = cookies.get('jwt');
if (jwt) {
return { selfUser: getUserFromJWT(jwt) };
}
return { selfUser: null };
};