From f2bca02d6616ab0f5c5177a0bffae69925a31a68 Mon Sep 17 00:00:00 2001 From: Cesar Napoleon Mejia Leiva Date: Mon, 17 Apr 2023 14:50:17 +0700 Subject: [PATCH] Update with-sveltekit.mdx Await `getSession()` in `src/+layout.server.ts` --- .../pages/guides/getting-started/tutorials/with-sveltekit.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx index 745164db3f7..3d52b20f8d1 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx @@ -130,7 +130,7 @@ import type { LayoutServerLoad } from './$types'; export const load: LayoutServerLoad = async ({ locals: { getSession } }) => { return { - session: getSession() + session: await getSession() }; }; ```