Skip to content
Home / Migrations / Firebase AuthSupabase Auth

Firebase Auth Supabase Auth

medium

Move just the auth layer from Firebase to Supabase without touching Firestore. Useful when migrating step-by-step.

Estimated: 4-8h · 6 steps
Progress0%
Step 1: Create Supabase project

Enable email/password and OAuth providers matching your Firebase auth methods.

Step 2: Export Firebase users

Use Firebase Admin SDK to export user list with emails and provider info.

npx firebase-admin-node export-users > users.json
Step 3: Import to Supabase

Use Supabase Management API to create users. Passwords can't be migrated — send reset emails.

curl -X POST 'https://api.supabase.com/v1/projects/{id}/auth/users' -H 'Authorization: Bearer $SUPABASE_ACCESS_TOKEN'
Step 4: Update client SDK
npm uninstall firebase && npm install @supabase/supabase-js
Step 5: Replace auth calls

signInWithEmailAndPassword → supabase.auth.signInWithPassword(). onAuthStateChanged → supabase.auth.onAuthStateChange().

Step 6: Handle JWT verification

Supabase JWT format differs. Update any server-side JWT verification to use Supabase's JWKS endpoint.

Sign in/up/out work. Sessions persist. OAuth providers functional.
Get started with Supabase Auth