Davemaina1 stops display names from quietly vanishing

A small but real bug fix: users were losing their first names between logins, and the fork has a clean three-part patch.

intakeinfrastructure

The Davemaina1 fork traced a persistent annoyance - display names going missing after signup - to two causes. New users who confirmed via email weren't signed in yet when the app tried to save their name, so the save failed silently. And older users predated the current sign-up path entirely.

The fix stashes the first name into the auth provider's user-metadata field during signup (which works even before a session exists), re-checks the profile on every login, and adds a backend route that quietly fills in a missing display name without ever overwriting one a user has edited themselves. The team flagged it as a pattern worth lifting upstream if other forks layer profiles on the same auth stack.

So what Anyone building a legal product on Supabase auth should look at this - it's the kind of silent data-loss bug that erodes user trust before anyone files a ticket.

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