Skip to content

Add Supabase auto-export command and improve name extraction#38

Open
Zertsov wants to merge 1 commit intomainfrom
voz/supa-migration
Open

Add Supabase auto-export command and improve name extraction#38
Zertsov wants to merge 1 commit intomainfrom
voz/supa-migration

Conversation

@Zertsov
Copy link

@Zertsov Zertsov commented Feb 6, 2026

  • New export:supabase command connects to Supabase Postgres and exports all users from auth.users including encrypted_password (bcrypt hashes) for password-preserving migration to Clerk
  • Auto-extracts display_name/first_name/name from raw_user_meta_data
  • Supabase transformer postTransform now extracts firstName/lastName from publicMetadata when not already set, so users don't need custom SQL to get names — the transformer handles it automatically

- New `export:supabase` command connects to Supabase Postgres and exports
  all users from auth.users including encrypted_password (bcrypt hashes)
  for password-preserving migration to Clerk
- Auto-extracts display_name/first_name/name from raw_user_meta_data
- Supabase transformer postTransform now extracts firstName/lastName from
  publicMetadata when not already set, so users don't need custom SQL to
  get names — the transformer handles it automatically

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Zertsov Zertsov requested a review from royanger February 6, 2026 22:27
@royanger
Copy link
Member

royanger commented Feb 6, 2026

Hey @jigar-clerk, I know you have a Supabase app with lots of users. Could you smoke test this PR real quick? Thanks!

@royanger royanger requested a review from jigar-clerk February 6, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants