Slightly working

This commit is contained in:
Roman Krček
2025-06-19 19:42:08 +02:00
parent 51dbfcc1bb
commit 9c94f9c717
12 changed files with 162 additions and 92 deletions

View File

@@ -0,0 +1,10 @@
// src/routes/+layout.server.ts
import type { LayoutServerLoad } from './$types'
export const load: LayoutServerLoad = async ({ locals: { safeGetSession }, cookies }) => {
const { session, user } = await safeGetSession()
return {
session,
user,
cookies: cookies.getAll(),
}
}