liaujianjie / firebase-to-supabase-auth-migrator

Collection of scripts to migrate from Firebase Auth users to Supabase Auth
MIT License
22 stars 4 forks source link

firebase-to-supabase-auth-migrator

A bunch of simple scripts to help migrate your Firebase Auth users into Supabase Auth.

These scripts were pulled out from the migration scripts that was used to migrate ~200k users for Mobbin.

Notes

Installation

Install dependencies

  1. yarn or npm install
  2. Ensure you have access to the Firebase project you are about to export from.

Usage

  1. Ready your:
    1. Firebase project ID
    2. Supabase Postgres connection string — you can grab it from https://app.supabase.io/project/<ref>/settings/database
    3. Download Supabase Certificate
      • copy it to the root of the project
      • rename it to supabase-ca-cert.crt
  2. yarn setup
  3. yarn export-users
  4. yarn import-users

Permission denied error