Skip to content

Commit

Permalink
Fix svelteKit createSession user id (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladshcherbin authored Jan 30, 2024
1 parent de8e52d commit ac8b775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/tutorials/username-and-password/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: ".",
Expand Down

0 comments on commit ac8b775

Please sign in to comment.