[PR #5669] docs: update migration guide from Supabase Auth #14396

Closed
opened 2026-04-13 09:27:17 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5669

State: closed
Merged: Yes


This PR updates the content for migrating from Supabase Auth to Better Auth.


Summary by cubic

Updated the Supabase Auth → Better Auth migration guide with clearer setup requirements and a robust, resumable migration script to reduce data loss and handle large datasets safely.

  • New Features
    • Made email/password required and added guidance to include admin, anonymous, and phoneNumber plugins.
    • Added required user.additionalFields (userMetadata, appMetadata, invitedAt, lastSignInAt).
    • Clarified social provider setup: include all providers used in Supabase to avoid missing accounts.
    • Introduced a new migration script with batching, cursor resume (resumeFromId), progress/ETA, transactions, and temp emails for phone-only users.
    • Added environment variables (FROM_DATABASE_URL, TO_DATABASE_URL) and noted tables are created in the public schema via the CLI migrate command.

Written for commit 68cb3fb. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5669 **State:** closed **Merged:** Yes --- This PR updates the content for migrating from Supabase Auth to Better Auth. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the Supabase Auth → Better Auth migration guide with clearer setup requirements and a robust, resumable migration script to reduce data loss and handle large datasets safely. - **New Features** - Made email/password required and added guidance to include admin, anonymous, and phoneNumber plugins. - Added required user.additionalFields (userMetadata, appMetadata, invitedAt, lastSignInAt). - Clarified social provider setup: include all providers used in Supabase to avoid missing accounts. - Introduced a new migration script with batching, cursor resume (resumeFromId), progress/ETA, transactions, and temp emails for phone-only users. - Added environment variables (FROM_DATABASE_URL, TO_DATABASE_URL) and noted tables are created in the public schema via the CLI migrate command. <sup>Written for commit 68cb3fb. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:27:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14396