Bulk User Import
Import up to 1,000 users per batch with legacy bcrypt or modern Argon2id password hashes. Transparent upgrade to Argon2id upon next sign-in.
Importing users from another platform
When migrating from Supabase, Firebase, Auth0, or a custom authentication database, users expect their existing passwords to work seamlessly without forcing a global password reset.
Aurabase provides a high-throughput bulk import endpoint (POST /v1/auth/admin/users/import) capable of ingesting up to 1,000 users per request. The operation returns an itemized status report so invalid records do not block the rest of the batch.
Supported password hashes and transparent upgrade
The import endpoint supports the following password hashing algorithms:
| Algorithm | Identifiers | Behavior |
|---|---|---|
| Argon2id | $argon2id$v=19$m=... | Verified directly using OWASP parameters. |
| bcrypt | $2a$, $2b$, $2y$ | Verified on login and transparently re-encoded to Argon2id upon first successful authentication. |
If no password_hash is provided for a user, the account is created without a password. The user can authenticate using Magic Links, Email/SMS OTP, or a password reset link.
Bulk import endpoint
Requires administrator authorization (service_role key).
Response (200 OK)
The response details the total number of records processed along with an itemized report:
If an email already exists in the project, it is marked as skipped rather than raising a fatal error.
TypeScript SDK
Use authAdmin.importUsers():
Import via Aurabase Studio
You can also import users directly through the web interface:
- Navigate to Authentication › Users in your project dashboard.
- Click the Import users button in the top toolbar.
- Choose JSON or CSV format. You can click Insert sample to inspect the expected schema.
- Paste your data and click Start Import.
- Inspect the batch summary and row-by-row status report.