fix: display name persists across logins via user_metadata backfill

↗ view on GitHub · Davemaina1 · 2026-05-14 · 76bd08c8

- 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>
Repository Davemaina1/iroh_
Author Davemaina1 <dmain7015@gmail.com>
Authored
Parents 3ec32238
Stats 3 files changed , +41 , -12
Part of Display-name persistence via Supabase user_metadata backfill

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-76bd08c8.md from inside the repo you want the change in.

⬇ Download capture-commit-76bd08c8.md