Skip to content

Commit b152186

Browse files
juan-arcadedevJuan Ibarluceaclaude
authored
fix(docs): standardize account-email cookie name (#1041)
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: Juan Ibarlucea <juanibarlucea@192.168.1.2> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1255865 commit b152186

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/_components/placeholder-replacer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export function PlaceholderReplacer() {
1212
// 2. If Ory email is available, use that (highest priority)
1313
// 3. If no Ory email but cookie exists, use cookie value
1414
// 4. Otherwise, use original placeholder
15-
const getCookieEmail = () => getCookie("last_arcadedev_account_email");
15+
// Canonical name set by Identity UI and read by the website navbar.
16+
const getCookieEmail = () => getCookie("last_arcade_account_email");
1617

1718
const replacement = loading
1819
? "{arcade_user_id}" // Keep original while loading

0 commit comments

Comments
 (0)