Status: built (2026-10-05) — the import and export API and the file readers. Tests: apps/auth-broker/tests/migration.test.ts, packages/migrate/tests, packages/credentials/tests/password.test.ts. The dashboard has an Import & export page, and the CLI has passkin users import|export.
Auth0's Rules and Hooks reach end-of-life on 2026-11-18; a great many teams are looking for somewhere to go. Leaving must be as easy as arriving — so everything that comes in can go out again.
What an import is
A list of records, not accounts. An imported person is a row in your project with no Passkin passport behind it. Nobody can sign in as them yet. The first time they prove they own the mailbox — by any method — the sign-in adopts the row by email: same user id, with the name, metadata and old id the import carried.
That rule is the safety of the whole feature. A Passkin passport belongs to a person
and works across products, so nothing a developer imports — an email address marked
verified, a password hash — may attach an identity to a passport or unlock one. The
tests never lets an import put a password on somebody else's passport… and
works for someone who already has a Passkin passport… pin it.
Bringing people in
POST /v1/users/import with your secret key (or the same route under
/v1/manage/projects/:pid/users/import from the dashboard). Up to 1,000 people per
request, 6 MB, 60 requests an hour.
In Passkin's shape:
curl https://auth.passk.in/v1/users/import \
-H "Authorization: Bearer $PASSKIN_SECRET_KEY" -H "Content-Type: application/json" \
-d '{
"on_conflict": "skip",
"users": [{
"email": "ada@example.com", "email_verified": true,
"first_name": "Ada", "last_name": "Lovelace", "username": "ada", "phone": "+15550100",
"external_id": "auth0|65a…", "password_hash": "$2b$10$…",
"public_metadata": {"plan": "pro"}, "private_metadata": {"crm_id": 9}, "unsafe_metadata": {},
"banned": false, "created_at": "2023-05-06T07:08:09Z"
}]
}'
From another system's export file — send the file's text and name the source:
curl https://auth.passk.in/v1/users/import \
-H "Authorization: Bearer $PASSKIN_SECRET_KEY" -H "Content-Type: application/json" \
-d "$(jq -n --rawfile data users.ndjson '{source: "auth0", data: $data}')"
The answer says exactly what happened and never drops anyone silently:
{ "created": 812, "updated": 0, "passwords": 790,
"skipped": [{"index": 4, "email": "x@y.com", "reason": "already in this project"}],
"failed": [{"index": 9, "email": "auth0|nomail", "reason": "has no email address"}],
"warnings": ["Cognito does not export passwords: …"] }
on_conflict is skip (default) or update. Update fills what is empty and merges
metadata; it never touches the profile or password of someone who has already signed in.
Sources
source |
Give it | Carries | Passwords |
|---|---|---|---|
auth0 |
The bulk user export (JSON lines or CSV: Dashboard → Extensions, or the Management API export job), optionally merged with the password-hash export Auth0 support provides (passwordHash) or the import format's custom_password_hash (bcrypt) |
email, verified flag, names, picture, username, phone, user_id, user_metadata → unsafe metadata, app_metadata → private metadata (options.app_metadata: "public" to expose it), blocked → banned, created |
bcrypt |
clerk |
The dashboard's CSV or JSON export (also Clerk's own import format), or users from the API | emails (verified ones recognised), names, username, phone, id, public/private/unsafe metadata, banned | bcrypt, argon2, PBKDF2-SHA256; others are left out with a warning |
supabase |
auth.users as JSON or CSV |
email, confirmed, full_name/name split, avatar, phone, id, raw_user_meta_data → unsafe, raw_app_meta_data → private, banned. Anonymous users are skipped |
bcrypt (encrypted_password) |
firebase |
firebase auth:export users.json, plus options.firebase = the project's hash parameters (console → Authentication → Users → ⋮ → Password hash parameters: base64_signer_key, base64_salt_separator, rounds, mem_cost) |
email, verified, display name, photo, phone, localId, custom attributes, disabled → banned |
Firebase scrypt, when the parameters are given |
cognito |
aws cognito-idp list-users (JSON) |
attributes, sub, custom:* → unsafe metadata, disabled → banned |
none — Cognito cannot export them |
csv / passkin |
A CSV or JSON with email, email_verified, first_name, last_name, username, phone, avatar_url, external_id, password_hash, public_metadata, private_metadata, unsafe_metadata, banned, created_at |
— | any supported hash |
Files can be a JSON array, {"users": […]}, newline-delimited JSON or CSV; the file readers are in @passkin/migrate
and run the same way in the API, the dashboard and the CLI.
Passwords
Supported hashes: bcrypt, argon2 (any variant), PBKDF2 (Django and canonical), scrypt, Firebase scrypt. Every cost setting is bounded (bcrypt cost ≤ 14, argon2 memory ≤ 128 MiB, scrypt ≤ 64 MiB, PBKDF2 ≤ 2 000 000 rounds), because an imported hash is chosen by whoever imported it and is checked when someone signs in: a hash beyond the bounds is refused at import (and counted in the warnings), and would be refused again at sign-in. An unsupported or out-of-bounds hash means the person is imported without a password.
How the old password is used — once. On a project with passwords turned on, an imported person types their email and their old password on the usual form. If it matches the imported hash, Passkin sends a code to their mailbox (the old password shows they are who the old service said; the code shows the address is theirs). Then they are signed in, the record is adopted, the imported hash is deleted, and they are offered a passkey.
The old password is not turned into a Passkin password. A passport is the person's and works across products; a hash somebody else supplied must never become a credential on it. (A developer who imported a hash of a password they knew, then talked a person into reading out an emailed code, would otherwise have a lasting way into that person's passport.) After the first arrival the person uses a passkey, an emailed code, or a password they set themselves.
If you prefer: import without hashes, and send people a "we have moved" email that asks them to sign in with a code.
Taking people out
GET /v1/users/export (secret key; or /v1/manage/projects/:pid/users/export): ?format=json|ndjson|csv,
?limit (≤ 1000) and ?offset. The Passkin-Next-Offset header says where the next page starts
(absent on the last), Passkin-Total the count. Each person: id, email and whether it is verified, names, username, phone,
avatar, external_id, the sign-in methods they have, banned, created and last sign-in times, and all three metadata
bags. CSV cells that a spreadsheet would run as formulas are neutralised.
What export does not contain: password hashes. A password belongs to the person and to every product they use with Passkin, not to one developer. Moving away means people sign in by email code, a passkey or a social account on the new system — the same as any move from a service that cannot export hashes (Cognito, for one). What leaves is everything the developer owns: their records, their metadata, their ids.
A file exported from Passkin imports back into Passkin (source: "passkin") — which the tests check.
Guides
- From Auth0 before 2026-11-18. Export users (and ask Auth0 support for the password-hash export if you need passwords);
move your Rules/Hooks logic to your backend, to Passkin webhooks (
user.created,user.signed_in) and — soon — claims templates; import withsource: "auth0"; point your app at Passkin's OIDC issuer (it is standard OIDC: change the issuer and client id); turn on passwords and passkeys; run both for a while and cut over. - From Clerk. Export from the dashboard, import with
source: "clerk", swap the SDK for@passkin/nextjsor any OIDC library. - From Supabase Auth.
select * from auth.users→ JSON, import withsource: "supabase". Keep Postgres as is — Passkin issues standard JWTs; Neon/Supabase "third-party auth" guides are on the roadmap. - From Firebase.
firebase auth:exportand the hash parameters;source: "firebase". - From Cognito.
list-users→source: "cognito"; people sign in by code or passkey the first time.
Not built yet
Import of social-provider links (people re-link by signing in with the same verified email), import of TOTP secrets and passkeys from other systems (passkeys cannot be exported by design — Passkin offers a new one on arrival), import of organizations and roles (arrives with organizations), a background job for imports above 1,000 per request.