Davemaina1 stops the sign-up flow from dropping users' names

A quiet bug where new accounts could lose the name a user typed at registration now has a belt-and-braces fix.

infrastructureintake

When someone signs up, there's a brief window before their account is fully live - and the fork found that in that window, the user's name could fail to save without any error showing. Anyone who registered before this was wired up had the same gap. Davemaina1's fix captures the name at the moment of sign-up itself, where it can't be missed, and then quietly fills in the gap for existing accounts the next time they log in.

The careful part: the backfill only writes a name when one is genuinely missing. If a user has since edited their display name, that edit is never overwritten. (Mike's accounts here run on Supabase, a common hosted login-and-database service.)

So what Anyone running a legal product on hosted login should care - it's a clean pattern for making sure a user's own details survive the messy first moments of account creation.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from Davemaina1/iroh_, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
76bd08c8 fix: display name persists across logins via user_metadata backfill Davemaina1 2026-05-14 ↗ GitHub
commit body
- Store first_name in Supabase user_metadata during signup (works even
  when email confirmation delays the session)
- On every login, ensureProfile sends the auth metadata name to
  POST /user/profile which backfills display_name if currently empty
- This guarantees display_name is set even if the signup PATCH failed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-383.md from inside the repo you want the changes in.

⬇ Download capture-thread-383.md