Skip to main content

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.

Migrate Firebase Auth Users Without Password Resets (2026)

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.

What moves from Firebase Auth to Didit Authentication, and the field that carries it
Firebase exportDidit fieldScope
Email address and its verification statusemail and email_verifiedPer person
Firebase UIDexternal_id, which becomes vendor_dataPer person, up to 255 characters
Password hashpassword_hash in base64, with password_algorithm set to firebase_scryptPer person
Saltpassword_salt in base64Per person
Signer keyfirebase_signer_key on an upload, firebase.signer_key in a batchProject level, sent once per import
Salt separatorfirebase_salt_separator or firebase.salt_separatorProject level, sent once per import
Roundsfirebase_rounds or firebase.roundsProject level, 1 to 8
Memory costfirebase_mem_cost or firebase.mem_costProject level, 1 to 14
Social links, authenticator secrets, external IDkeep_social, keep_mfa, keep_idsKept 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.

Video thumbnail for Use Didit with MCP, showing the Didit MCP server in an AI assistant
An AI assistant connected through Didit MCP can configure Authentication within the management access the owner approved.

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 or batch request
File jobBatch request
CallPOST import-jobs/, multipartPOST imports/, JSON
SizeOne CSV or JSON file, up to 25 MB and 100,000 people1 to 1,000 rows per request
Dry runAlways runs first, in the backgrounddry_run: true by default
CommitPOST import-jobs/{id}/start/The same request with dry_run: false
Partial failureEach batch of 1,000 commits on its own, and an interrupted import resumesAll 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_algorithm set to firebase_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:authentication to 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.

Video poster for Didit biometric authentication, showing a sign-in step
Use an imported account to test email and password sign-in in the sandbox before switching your app.

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

What each import input carries, and what each call answers
ItemWhere it goesRule or answer
emailPer personRequired on every row
email_verifiedPer personTrue or false. A verified email is required for password sign-in
external_idPer personUp to 255 characters, becomes vendor_data
password_algorithmPer personfirebase_scrypt
password_hashPer personBase64 Firebase hash
password_saltPer personBase64 salt from that person's Firebase export
firebase_signer_keyOnce per importFrom the Firebase project
firebase_salt_separatorOnce per importFrom the Firebase project
firebase_roundsOnce per import1 to 8
firebase_mem_costOnce per import1 to 14
passwordsUpload fieldimport by default. reset discards every hash in the file
UploadPOST import-jobs/202 with a job. Note the job id
Dry runGET import-jobs/{id}/processed, total, startable, expires_at and the errors when it fails
StartPOST import-jobs/{id}/start/202. The job ends done or error
Batch commitPOST imports/ with dry_run: false201, or 400 if any row fails

Failure cases and recovery

What goes wrong, and how to recover
SymptomCauseRecovery
Import request rejected for authorizationAn end-user token or verification key was sent instead of a console sessionUse a console session with write:authentication for the import
Dry run failedRows the import cannot readRead the listed errors, fix the file, upload again. Nothing was written.
import_runningA second import on the same applicationWait for the finish email, then start
Passwords rejected after importWrong signer key, salt separator, rounds or memory cost, an unverified email, or rows that are not Firebase scryptCheck 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 missingAn account may already have been imported, or it may be absent from the uploaded fileCompare 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_payloadSame key, different contentSend the identical body, or use a new key per batch
File gone before you started24 hours passed after a dry run that was never importedUpload the file again

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.

Video thumbnail explaining Didit billing, credits, auto-recharge and volume discounts
Billing runs on prepaid credit, and monthly plan credit does not roll over.

Sources

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.