How to migrate from Auth0 to SyAuth without resetting passwords

Doha I. · Published · Lire en français

How to migrate from Auth0 to SyAuth without resetting passwords

Export your users from Auth0, ask Auth0 support for the bcrypt password hashes, and send them to SyAuth's import API (POST /e/v1/developer/users/import/), testing with a dry run first. Users keep their passwords. Then replace the issuer, client ID and callback in your app's OpenID Connect settings, since both platforms use the same standard.

Leaving an identity provider sounds risky because of one question: will my users have to reset their passwords? With SyAuth, they do not, as long as you import the password hashes Auth0 gives you.

This article explains the whole move. The full technical reference is the Migrate from Auth0 guide in the SyAuth docs.

What you need

  • A SyAuth account with a workspace and an application (setup).
  • A developer access token with the write_users scope.
  • Your Auth0 user export and, ideally, the password hashes.

Step 1: export users from Auth0

Auth0 lets you export users as JSON (with its export extension or a Management API export job). Include email, email_verified, given_name, family_name and blocked.

Password hashes are not in that export. Auth0 provides them on request through its support. They are bcrypt hashes, which SyAuth can verify. Treat the file as highly sensitive: encrypt it, limit who can open it and delete it after the import.

No hashes? The import still works. Users are created without a usable password and choose a new one through password recovery.

Step 2: do a dry run

Send a small batch with "dry_run": true to POST https://api.syauth.com/e/v1/developer/users/import/?workspace_id=YOUR_WORKSPACE_ID, with your developer token in the X-Developer-Token header. Nothing is written. The response tells you how many users would be created, with or without a password, how many already exist and which entries have errors.

Step 3: import

Send your users in batches of up to 1,000 with "dry_run": false. A few rules make the import safe to repeat:

  • Emails that already exist in the workspace are skipped, so resending a batch does not create duplicates.
  • Blocked Auth0 users are imported as inactive.
  • Your plan's user limit applies; if you reach it, the import stops and tells you where.
  • Each import records one audit event with the counts. Hashes are never logged.

When an imported user signs in for the first time with their old password, SyAuth verifies it against the bcrypt hash and then re-hashes it with its default algorithm.

Step 4: switch your application

Auth0 and SyAuth both speak OpenID Connect, so your login code barely changes:

Setting New value
Issuer https://api.syauth.com/e/v1
Discovery URL https://api.syauth.com/e/v1/.well-known/openid-configuration
Client ID From your SyAuth application
Callback URL Registered exactly in SyAuth

Use the authorization code flow with S256 PKCE. If your Auth0 setup relied on Actions or Rules, move that logic into your application. Reconfigure your social providers (Google, GitHub, LinkedIn, Facebook) in SyAuth.

Step 5: verify before switching all traffic

  1. Sign in with an imported user and their existing password.
  2. Sign in with a social provider.
  3. Test password recovery for a user imported without a hash.
  4. Run the integration checklist.

Why teams make this move

The usual reasons are cost at scale, since Auth0 prices by monthly active user, and wanting a vendor closer to home. We compared both products honestly, including the cases where Auth0 remains the better choice, in SyAuth vs Auth0.

Questions about your migration? Write to [email protected].

Free for up to 30,000 registered users

Start on the free plan and upgrade when your project grows.

How to migrate from Auth0 to SyAuth without resetting passwords | SyAuth