From 73d803fdfb14a2efac85af128c347d28d4b13f3a Mon Sep 17 00:00:00 2001 From: Juan Ibarlucea Date: Mon, 29 Jun 2026 15:56:47 -0300 Subject: [PATCH] fix(docs): standardize account-email cookie name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Read `last_arcade_account_email` (the name Identity UI actually sets and the marketing-site navbar reads) instead of `last_arcadedev_account_email`, which nothing in the org sets — so the cookie fallback that prefills the user's email in code examples was effectively dead. Aligns docs with the rest of the stack. Co-Authored-By: Claude Opus 4.8 (1M context) --- app/_components/placeholder-replacer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/_components/placeholder-replacer.tsx b/app/_components/placeholder-replacer.tsx index b6f302591..e7dbf6f48 100644 --- a/app/_components/placeholder-replacer.tsx +++ b/app/_components/placeholder-replacer.tsx @@ -12,7 +12,8 @@ export function PlaceholderReplacer() { // 2. If Ory email is available, use that (highest priority) // 3. If no Ory email but cookie exists, use cookie value // 4. Otherwise, use original placeholder - const getCookieEmail = () => getCookie("last_arcadedev_account_email"); + // Canonical name set by Identity UI and read by the website navbar. + const getCookieEmail = () => getCookie("last_arcade_account_email"); const replacement = loading ? "{arcade_user_id}" // Keep original while loading