9 lines
246 B
TypeScript
9 lines
246 B
TypeScript
import type { LayoutServerLoad } from './$types'
|
|
|
|
export const load: LayoutServerLoad = async ({ locals: { safeGetSession }, cookies }) => {
|
|
const { session } = await safeGetSession()
|
|
return {
|
|
session,
|
|
cookies: cookies.getAll(),
|
|
}
|
|
} |