Migrate from Auth0
Moving from Auth0 to SyAuth has two parts: move the users and point the application at SyAuth. Both platforms use OpenID Connect, so the application changes are small. Users keep their passwords when you import Auth0's password hashes.
1. Prepare SyAuth
Complete account, workspace and application setup. Register the same callback URLs your Auth0 application uses, and configure the social providers you had in Auth0 (Google, GitHub, LinkedIn or Facebook).
Create a developer access token with the write_users scope for the import.
2. Export users from Auth0
Use Auth0's user export (Dashboard extension or Management API export job) to get a JSON file of users with at least email, email_verified, given_name, family_name and blocked.
Password hashes are not part of the standard export. Auth0 provides them on request through its support. The file contains bcrypt hashes (for example in passwordHash). Keep this file encrypted and delete it after the import.
Without hashes, the import still works: users are created without a usable password and set a new one through password recovery.
3. Test with a dry run
Send a small batch with "dry_run": true. Nothing is written; the response shows what would happen.
curl -X POST "https://api.syauth.com/e/v1/developer/users/import/?workspace_id=YOUR_WORKSPACE_ID" \
-H "X-Developer-Token: YOUR_DEVELOPER_TOKEN" \
-H "Content-Type: application/json" \
--data @first-batch.json
{
"format": "auth0",
"dry_run": true,
"users": [
{
"email": "[email protected]",
"email_verified": true,
"given_name": "Alex",
"family_name": "Martin",
"passwordHash": "AUTH0_BCRYPT_HASH"
}
]
}
The response lists received, created, with_password, without_password, skipped_existing and per-entry errors.
4. Import
Send the users in batches of up to 1,000 with "dry_run": false.
- Accepted hash fields:
passwordHash,password_hash, orcustom_password_hashwith{"algorithm": "bcrypt", "hash": {"value": "..."}}. Prefixes$2a$,$2b$and$2y$are accepted. - Emails that already exist in the workspace are skipped, so you can safely resend a batch.
blocked: trueusers are imported as inactive.- Your plan's user limit applies. When it is reached, the import stops and reports
stopped; upgrade or reduce usage, then resend the remaining users. - Workspaces connected to an existing user database refuse the import (409): import into that database instead.
Each completed import records one audit event with the counts; hashes are never logged.
5. Switch the application
In your application's OpenID Connect settings, replace the Auth0 values:
| Setting | New value |
|---|---|
| Issuer | https://api.syauth.com/e/v1 |
| Discovery | https://api.syauth.com/e/v1/.well-known/openid-configuration |
| Client ID (and secret for confidential clients) | From your SyAuth application |
| Callback URL | Registered in SyAuth exactly as your app sends it |
Use the authorization code flow with S256 PKCE. The complete starter shows a working integration you can compare with your code. Auth0-specific SDK calls (for example Actions or Rules logic) need equivalents in your application.
6. Verify
- Sign in with an imported user and their existing password.
- On that first successful sign-in, SyAuth re-hashes the password with its default algorithm; later sign-ins use the new hash.
- Sign in with a social provider and with a user imported without a hash (use password recovery).
- Check the integration checklist.
See compatibility notes for the supported protocol subset before you switch production traffic.