mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
12 lines
258 B
TypeScript
12 lines
258 B
TypeScript
import type { LayoutServerLoad } from './$types';
|
|
|
|
export const load: LayoutServerLoad = async ({ locals: { safeGetSession }, cookies }) => {
|
|
const { session, user } = await safeGetSession();
|
|
|
|
return {
|
|
session,
|
|
user,
|
|
cookies: cookies.getAll()
|
|
};
|
|
};
|