Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

ensure user id

Oleg Isonend67162d4f442
diff --git a/app/shared/session/user.server.ts b/app/shared/session/user.server.ts
index b6d58a29c6..f76b03bbf3 100644
--- a/app/shared/session/user.server.ts
+++ b/app/shared/session/user.server.ts
@@ -18,6 +18,6 @@ export const ensureUserCookie = async (
headers: {
"Set-Cookie": await userIdParser.serialize(generatedUserId),
},
- userId,
+ userId: userId || generatedUserId,
};
};