Migrate from Supabase Auth
Move to Paycux from Supabase Auth without a flag day, keeping existing sessions alive.
Introduction
Migrate from Supabase Auth is part of the Paycux platform. This page explains what it does, when to reach for it, and the smallest working setup you can ship.
Everything below applies to both environments. Build and test in staging, then promote the same configuration to production without changing your code — only the API key and client ID differ.
Export Supabase data
Export Supabase data is handled by Migrate from Supabase Auth rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.
Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.
Export users via SQL
A user record holds the identity Paycux resolved for the person: email, name, verification state, and the identities they have linked. It is the object your application should key on.
Users are unique by email within a project. When the same person arrives through a second provider, Paycux links the identity to the existing user rather than creating a duplicate.
Export passwords
Export passwords is handled by Migrate from Supabase Auth rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.
Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.
Import users into Paycux
Migrations run alongside your current system rather than replacing it in one step. Import the accounts you already have, run both paths in parallel, then cut over once the numbers agree.
- 1Export your existing users with their stable identifiers and email addresses.
- 2Import them into Paycux; imported users keep their original ID under
external_idso your foreign keys stay valid. - 3Send new sign-ins through Paycux while old sessions continue to work.
- 4Retire the old path once sign-in volume through Paycux matches your baseline.
Using the Paycux migrations CLI
Using the Paycux migrations CLI applies specifically to Migrate from Supabase Auth. It behaves the same in both environments, and the values it depends on are visible in the dashboard for the environment you have selected.
If the behaviour you see does not match this description, check which environment your API key belongs to before anything else — a staging key against production data is the most common cause.
Import passwords
Import passwords applies specifically to Migrate from Supabase Auth. It behaves the same in both environments, and the values it depends on are visible in the dashboard for the environment you have selected.
If the behaviour you see does not match this description, check which environment your API key belongs to before anything else — a staging key against production data is the most common cause.
Migrate social auth users
Migrate social auth users applies specifically to Migrate from Supabase Auth. It behaves the same in both environments, and the values it depends on are visible in the dashboard for the environment you have selected.
If the behaviour you see does not match this description, check which environment your API key belongs to before anything else — a staging key against production data is the most common cause.