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