From ac8b7750dcc2beb039c72993720ea54f59007bf1 Mon Sep 17 00:00:00 2001 From: Vlad Shcherbin Date: Tue, 30 Jan 2024 03:51:10 +0300 Subject: [PATCH] Fix svelteKit createSession user id (#1383) --- docs/pages/tutorials/username-and-password/sveltekit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/tutorials/username-and-password/sveltekit.md b/docs/pages/tutorials/username-and-password/sveltekit.md index bfaae5933..f63e9ee2e 100644 --- a/docs/pages/tutorials/username-and-password/sveltekit.md +++ b/docs/pages/tutorials/username-and-password/sveltekit.md @@ -221,7 +221,7 @@ export const actions: Actions = { }); } - const session = await lucia.createSession(userId, {}); + const session = await lucia.createSession(existingUser.id, {}); const sessionCookie = lucia.createSessionCookie(session.id); event.cookies.set(sessionCookie.name, sessionCookie.value, { path: ".",