Migrate Firebase Auth Users Without Password Resets (2026)
Users with verified email addresses keep their existing passwords after you import Firebase scrypt hashes and salts with the matching project parameters and enable password sign-in. Test a password in the sandbox first.

Contents
In this guide
Jump to the part you need.
Users with verified email addresses can sign in with their existing passwords after you import their Firebase scrypt hashes and salts with the matching project parameters and enable password sign-in. It fits teams with an email and password user base. Authentication is free for the first 50,000 active users each month, then $0.02 per active user per month. The caveat: signer key, salt separator, rounds and memory cost must be exact, so test in a sandbox first.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Firebase export | Didit field | Scope |
|---|---|---|
| Email address and its verification status | email and email_verified | Per person |
| Firebase UID | external_id, which becomes vendor_data | Per person, up to 255 characters |
| Password hash | password_hash in base64, with password_algorithm set to firebase_scrypt | Per person |
| Salt | password_salt in base64 | Per person |
| Signer key | firebase_signer_key on an upload, firebase.signer_key in a batch | Project level, sent once per import |
| Salt separator | firebase_salt_separator or firebase.salt_separator | Project level, sent once per import |
| Rounds | firebase_rounds or firebase.rounds | Project level, 1 to 8 |
| Memory cost | firebase_mem_cost or firebase.mem_cost | Project level, 1 to 14 |
| Social links, authenticator secrets, external ID | keep_social, keep_mfa, keep_ids | Kept unless you send false |
Start free in the sandbox at business.didit.me: creating an account costs nothing and there is no sales call. The product is Didit Authentication, and every list price, active users included, is on didit.me/pricing. Developers who want an AI assistant to drive the setup can connect the Didit MCP server.

The outcome, and why the file import is the route we recommend
Two calls import people into Didit Authentication: a file job and a batch request. Both keep password hashes, verified emails, social links and authenticator secrets, and both need the same four Firebase values. The outcome is the same either way: users with verified email addresses can sign in with their existing passwords after you import their Firebase scrypt hashes and salts with the matching project parameters and enable password sign-in, and your application signs them in with Didit from then on.
Pick the file job for a Firebase project with thousands of users and one export. Pick the batch request when a script already walks your database and you want all or nothing on each 1,000 rows. You never send a plaintext password: the hash and the salt travel as base64 strings.
| File job | Batch request | |
|---|---|---|
| Call | POST import-jobs/, multipart | POST imports/, JSON |
| Size | One CSV or JSON file, up to 25 MB and 100,000 people | 1 to 1,000 rows per request |
| Dry run | Always runs first, in the background | dry_run: true by default |
| Commit | POST import-jobs/{id}/start/ | The same request with dry_run: false |
| Partial failure | Each batch of 1,000 commits on its own, and an interrupted import resumes | All or nothing |
Prerequisites
- Access to the Firebase project settings that expose the password hash parameters: signer key, salt separator, rounds and memory cost.
- For each password user, prepare the required email,
password_algorithmset tofirebase_scrypt, a base64 hash and a base64 salt. Preserve verified email status where it is true. Didit requires a verified email for password sign-in. - A Didit account with a sandbox application. Every sandbox application has Authentication on from the start, and sandbox testing is free and never billed.
- A console session with
write:authenticationto run an import. Imports do not accept an end-user token or a verification API key. - Your redirect URL registered under Authentication, Security and sessions, before you test a real sign-in.
How to migrate Firebase Auth users without password resets
Step 1: Copy the four Firebase scrypt parameters
Copy all four values from the same Firebase project as the export. The signer key and salt separator are project-level values. Rounds and memory cost are numeric scrypt parameters. The import accepts firebase_rounds from 1 to 8 and firebase_mem_cost from 1 to 14. Send all four or none, and keep them where your importer can read them as environment variables. Once imported, the parameters are stored encrypted per application.
Step 2: Export the hashes and salts
Each person needs one base64 password hash, one base64 salt and password_algorithm set to firebase_scrypt. In CSV, the user columns look like this:
email,external_id,email_verified,display_name,password_algorithm,password_hash,password_salt
Those are the per-person columns. The four project values do not belong in the file: send them once per import as multipart fields on the upload request, exactly as the command in step 4 shows. Keep email_verified true for anyone who confirmed the address, because only people with a verified email can sign in with a password.
Step 3: Point the calls at your sandbox application
Every import call goes to your application's Authentication management API. MANAGEMENT_BASE is:
https://apx.didit.me/auth/v2/organizations/{org_id}/applications/{application_id}/authentication/
Imports use a console session with write:authentication. End-user tokens and verification API keys cannot authorize imports.
Step 4: Upload the file with the hashes kept
curl --fail-with-body "${MANAGEMENT_BASE}import-jobs/" \
-H "Authorization: Bearer $CONSOLE_ACCESS_TOKEN" \
-F file=@users.csv \
-F passwords=import \
-F keep_social=true \
-F keep_verified=true \
-F keep_mfa=true \
-F keep_ids=true \
-F firebase_signer_key="$FIREBASE_SIGNER_KEY" \
-F firebase_salt_separator="$FIREBASE_SALT_SEPARATOR" \
-F firebase_rounds="$FIREBASE_ROUNDS" \
-F firebase_mem_cost="$FIREBASE_MEM_COST"
passwords=import is the default and keeps the hashes. passwords=reset deliberately discards every password hash in the uploaded file. To preserve passwords, supply the four project values and prove an existing password works in the sandbox before the live import. The four keep_* switches are true unless you send false. An application keeps at most 5 uploaded files at a time, and the call returns 202 with a job.
Step 5: Read the dry run before you commit
Every upload starts a dry run in the background that checks every person and writes nothing. Poll the job:
curl --fail-with-body "${MANAGEMENT_BASE}import-jobs/$JOB_ID/" \
-H "Authorization: Bearer $CONSOLE_ACCESS_TOKEN"
The job reports kind as dry_run, then import once you start it, and status moves from queued to running to passed or failed. startable turns true only when the dry run passed and the file has not expired. The file is deleted 24 hours after a dry run you never imported, and a failed dry run lists its errors so you can fix the file and upload it again.
Step 6: Start the import
curl --fail-with-body --request POST "${MANAGEMENT_BASE}import-jobs/$JOB_ID/start/" \
-H "Authorization: Bearer $CONSOLE_ACCESS_TOKEN"
People import in batches of 1,000 and each batch commits on its own. One import runs per application at a time, and a second request answers import_running. An interrupted import resumes after its last committed batch, and people already imported are skipped, so running the same file twice is safe. The person who started the import gets an email when it finishes or stops.
Step 7: Prove one imported password in the sandbox
Turn the password method on with PUT methods/password/ and {"enabled": true}, using a console session, a full-access application API key or an application key with authentication write access, or an owner-approved grant with didit:management. Then sign a migrated person in on the sandbox origin. The hosted flow is OAuth 2.0 authorization code with PKCE: open {origin}/sign-in with redirect_uri, state, code_challenge and code_challenge_method=S256. Didit redirects to the registered callback with code and state. The SDK handles the exchange, or the app exchanges the code at POST token/ within 60 seconds.
A wrong password, an unknown email, an unverified email and a blocked account all answer 400 {"error": "invalid_credentials"}, so you cannot debug by reading the error alone. A successful password sign-in confirms that the imported credentials work for that account. Test more than one representative account before cutover.

Step 8: Repeat the import in Live before switching sign-in
Sandbox and Live applications have separate users, settings and issuers, so a sandbox import does not populate Live. Enable Authentication for the Live application from the Products page, register its callback and turn on the password method, then run the dry run and commit against the Live application ID. Confirm the import reaches done, and test an imported login and backend token verification against the Live issuer before you route traffic. Keep the existing Firebase project in place while you do this.
Step 9: Switch sign-in to the Live application
Point your app at the Live application's origin and open {origin}/sign-in with redirect_uri, state, code_challenge and code_challenge_method=S256. The @didit-protocol/auth package handles the callback exchange, and the quickstart gets that working in about 10 minutes. On the server, verify the access token on every protected request:
import { verifyToken } from "@didit-protocol/auth/server";
export async function authenticate(request: Request) {
const header = request.headers.get("authorization") ?? "";
const token = header.startsWith("Bearer ") ? header.slice(7) : "";
try {
const claims = await verifyToken(token, { publishableKey: process.env.DIDIT_PUBLISHABLE_KEY });
return { personId: claims.sub, vendorData: claims.vendor_data };
} catch {
return null;
}
}
verifyToken checks the ES256 signature against your issuer's published keys, the issuer and the expiry. Access tokens last at most 5 minutes, and the SDK refreshes them for you.
If you prefer batches, the same data goes in JSON
{
"rows": [
{
"email": "user@example.com",
"external_id": "user-1234",
"email_verified": true,
"display_name": "Example User",
"password_algorithm": "firebase_scrypt",
"password_hash": "BASE64_HASH",
"password_salt": "BASE64_SALT"
}
],
"firebase": {
"signer_key": "FIREBASE_SIGNER_KEY",
"salt_separator": "FIREBASE_SALT_SEPARATOR",
"rounds": 8,
"mem_cost": 14
},
"dry_run": true,
"idempotency_key": "migration-batch-0001"
}
The Firebase parameters go in the firebase object once per request. A dry run returns 200 with the result and writes nothing. With dry_run: false, a successful import returns 201 and a batch with any error returns 400 and imports nobody.
Expected output
A working file import answers 202 on upload, then a dry run that reaches passed, then 202 on start and an email when the job reaches done or error. A working batch import answers 200 on the dry run and 201 when it commits. Both 202 responses acknowledge a request.
Inputs and outputs
| Item | Where it goes | Rule or answer |
|---|---|---|
email | Per person | Required on every row |
email_verified | Per person | True or false. A verified email is required for password sign-in |
external_id | Per person | Up to 255 characters, becomes vendor_data |
password_algorithm | Per person | firebase_scrypt |
password_hash | Per person | Base64 Firebase hash |
password_salt | Per person | Base64 salt from that person's Firebase export |
firebase_signer_key | Once per import | From the Firebase project |
firebase_salt_separator | Once per import | From the Firebase project |
firebase_rounds | Once per import | 1 to 8 |
firebase_mem_cost | Once per import | 1 to 14 |
passwords | Upload field | import by default. reset discards every hash in the file |
| Upload | POST import-jobs/ | 202 with a job. Note the job id |
| Dry run | GET import-jobs/{id}/ | processed, total, startable, expires_at and the errors when it fails |
| Start | POST import-jobs/{id}/start/ | 202. The job ends done or error |
| Batch commit | POST imports/ with dry_run: false | 201, or 400 if any row fails |
Failure cases and recovery
| Symptom | Cause | Recovery |
|---|---|---|
| Import request rejected for authorization | An end-user token or verification key was sent instead of a console session | Use a console session with write:authentication for the import |
Dry run failed | Rows the import cannot read | Read the listed errors, fix the file, upload again. Nothing was written. |
import_running | A second import on the same application | Wait for the finish email, then start |
| Passwords rejected after import | Wrong signer key, salt separator, rounds or memory cost, an unverified email, or rows that are not Firebase scrypt | Check the account's verified email status, the row's algorithm, hash and salt, and the four project values. Resolve failures in the sandbox before the live import. A repeated file import skips people already imported. |
| People you expected are missing | An account may already have been imported, or it may be absent from the uploaded file | Compare the expected count with the job result and check whether the missing accounts were already imported or absent from the uploaded file |
400 with idempotency_key: different_payload | Same key, different content | Send the identical body, or use a new key per batch |
| File gone before you started | 24 hours passed after a dry run that was never imported | Upload the file again |
Paid steps and review boundaries
The published Didit Authentication rate is based on monthly active users, and every list price is on didit.me/pricing. The supplied price feed lists no separate import fee. The first 50,000 active users each month are free, and each active user after that is $0.02 per month at list price. Use monthly active usage, rather than the number of records in the export, for this estimate. If you also attach a full ID check at sign-up, it bills at $0.33 per completed check. The sandbox is free and never billed, so the whole rehearsal costs nothing.
Two review boundaries matter. The dry run writes nothing, and the sandbox sign-in tests whether an imported password actually works. And importing someone is not verifying them. Authentication signs people into your application, it does not approve a KYC check or authorize a payment, and your backend makes those decisions from each product's own result. When you need a human in the loop for a migrated account, use the console to block an account or revoke its sessions. An Owner or Admin can reset MFA.
Worked cost example
Say you move 250,000 Firebase accounts and 120,000 of them sign in during the first month.
- Active users: 120,000 minus the 50,000 free allowance is 70,000 billable users. 70,000 x $0.02 = $1,400.00 for the month at list price.
- On the Scale plan, every Didit price is 10% lower: $0.02 x 0.90 = $0.018 per active user. Scale usage is 70,000 x $0.018 = $1,260. With the full $350 monthly credit available, the remaining usage costs $910. Add the $299 monthly plan fee for a total of $1,209 under those assumptions.
- Optional, if the same 250,000 people each take one full ID check at $0.33 list price: 250,000 x $0.33 = $82,500.00, once.
The supplied price feed lists no separate import fee. These figures cover the stated Authentication usage and show optional ID checks separately.

Sources
- Didit docs, Migrate users: import passwords and MFA
- Didit docs, Authentication overview
- Didit docs, Set up Didit Authentication by API
- Didit docs, Sign-in methods: passkeys, codes, social, SSO
- Didit docs, Authentication quickstart
- Didit docs, Authentication console guide
- Didit pricing and pricing as JSON, read November 26, 2026
- Didit docs, Pricing and billing rules
- Didit MCP server
Create a sandbox application at business.didit.me, upload your Firebase export with the four scrypt parameters, and read the dry run before you start the import. Sandbox testing is free and requires no sales call.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
Can I migrate Firebase Auth users to Didit without forcing a password reset?
Yes, for users whose passwords are stored as Firebase scrypt hashes. Import them with password_algorithm set to firebase_scrypt, a base64 password_hash and a base64 password_salt per person, plus the project's four hash parameters sent once per import. Users with verified email addresses can sign in with their existing passwords after you import their Firebase scrypt hashes and salts with the matching project parameters and enable password sign-in.
What are the four Firebase scrypt parameters and where do they go?
Signer key, salt separator, rounds and memory cost. On a file upload they are firebase_signer_key, firebase_salt_separator, firebase_rounds and firebase_mem_cost, sent as multipart fields with the file. On a batch request they sit in a firebase object as signer_key, salt_separator, rounds and mem_cost. They are stored encrypted per application.
What values does Didit accept for rounds and memory cost?
firebase_rounds accepts values from 1 to 8. firebase_mem_cost accepts values from 1 to 14. Copy both from the Firebase project rather than guessing, because a single wrong value means the imported hashes will not verify.
What happens if I do not send the Firebase parameters?
Send all four project parameters when importing Firebase scrypt hashes. If the dry run fails, correct the inputs and upload the file again. Test an existing password in the sandbox before importing into Live. Choose passwords=reset only if you intend to discard the uploaded hashes.
How large a migration does the import handle?
A file job takes one CSV or JSON file of up to 25 MB and 100,000 people. A batch request takes 1 to 1,000 rows per call. An application can hold 5 uploaded files at a time and runs one import at a time, and an interrupted import resumes after its last committed batch of 1,000.
Do verified emails, social sign-in links and authenticator apps move too?
Yes. keep_verified, keep_social, keep_mfa and keep_ids are true unless you send false. Verified email matters more than it looks, because only people with a verified email can sign in with a password.
What does a failed dry run look like and how do I recover?
The job shows status: failed, lists its errors and writes nothing. Fix the file and upload it again as a new job. The failed file is deleted, and a file whose dry run you never imported is deleted after 24 hours.
Can I run the same migration file twice?
Yes. People already imported are skipped, so a second run does not duplicate anyone, and an interrupted import resumes instead of starting over. On the batch route, repeating a committed request with the same idempotency_key returns the recorded result, and the same key with different content returns 400.
How much does migrating Firebase Auth users cost?
The published Authentication rate is based on monthly active users, and the supplied price feed lists no separate import fee. The first 50,000 active users each month are free, then $0.02 per active user per month at list price, and the Growth and Scale plans discount every Didit price. Sandbox testing is free and unlimited.
Can I run the import from the console instead of the API?
Yes. Authentication, Import users in the Didit Business Console has a New import button, the list of platforms and an import history with dry runs and finished imports. The console guide lists the page and the history.
Does importing users verify their identity?
No. Authentication signs your own users into your application, and it is separate from identity verification. A sign-in does not approve a verification, and you can add a step-up check such as a selfie before a sensitive action if you need one.
What if some of my users' hashes are not Firebase scrypt?
Use firebase_scrypt only for hashes produced with Firebase scrypt. For other hashes, identify the algorithm and check whether the Didit migration guide documents it. For a supported format, dry-run the import and test an existing password in the sandbox before cutover.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


