This commit is contained in:
2023-07-19 15:59:54 +02:00
parent 2b0c954aa5
commit 59ab194b08
3 changed files with 4 additions and 10 deletions

View File

@@ -1,11 +1,8 @@
import type {LayoutServerLoad} from './$types';
import { authenticateUser } from '$lib/js/authenticate';;
export const load = (async ({cookies}) => {
const user = await authenticateUser(cookies)
console.log("LOAD LAYOUT")
console.log(user)
return {
user
}
}) satisfies LayoutServerLoad;
});