The main difference
Clerk renders its sign-in form inside your app. Ziqme Auth keeps credentials on its hosted login: the SignIn component is a card whose button goes there. Your app receives tokens through the standard authorization code flow with PKCE, so any OpenID Connect library works too.
Components and hooks
| Clerk | Ziqme Auth |
|---|---|
| <ClerkProvider publishableKey> | <ZiqmeAuthProvider issuer clientId redirectUri>, or createZiqmeAuth in Vue |
| Publishable key | The application's client ID. It is public; there is no separate key |
| Secret key | A confidential application's client secret, for servers only |
| <SignIn /> | <SignIn /> (redirects to the hosted login) |
| <SignUp /> | <SignUp /> (accounts come by invitation, or link your own page) |
| <UserButton /> | <UserButton /> |
| <UserProfile /> | <UserProfile /> (read-only, links to the hosted account page) |
| <OrganizationSwitcher /> | <OrganizationSwitcher /> |
| <SignedIn>, <Protect> | <RequireAuth roles>, or the Vue route guard |
| useUser(), useAuth() | useAuth(): user, isSignedIn, getAccessToken |
| getToken() | getAccessToken() |
| auth() on the server | verifyJwt(token, { issuer, audience }) on the token your client sends |
| publicMetadata, privateMetadata | publicMetadata, privateMetadata, mapped into claims per application |
| Webhooks (Svix signatures) | Webhooks with an HMAC-SHA256 signature; see the webhooks guide |
What to change in your code
- Session tokens: Clerk's short-lived session JWT becomes a 15-minute access token (at+jwt) with a rotating refresh token when you ask for offline_access.
- Server checks: replace Clerk's middleware with a JWT check against the JWKS. The token must be sent by the client; there is no session cookie on your domain.
- Organization data: read org_id, org_slug and org_roles from the token instead of the Clerk organization object.
- Sign-up: self-registration of end users is not offered. Invite people, or keep your own registration page and pass it as signUpUrl.
Moving users with their passwords
Clerk's user export (Dashboard, Settings, Export users) is a CSV that includes each user's password_digest and password_hasher. Clerk stores bcrypt for most accounts and keeps the hash of accounts it imported in their original format.
- Create the applications, their roles and any organizations (by slug) first.
- Export the users CSV from the Clerk dashboard.
- Rename its columns to the Ziqme CSV header: primary_email_address becomes email, first_name becomes given_name, last_name becomes family_name, password_digest becomes password_hash, and password_hasher becomes password_hash_algorithm (bcrypt stays bcrypt; argon2id and argon2i become argon2; for any other hasher, match its digest to a row of the format table in Migrating from your own database, or leave the hash out and use lazy migration). Put public_metadata and private_metadata as JSON objects in their cells.
- Upload the file under Auth admin, Import and export, read the dry-run report, then start it.
- Each person keeps their password; on their first sign-in Auth replaces the hash with its own format.
email,email_verified,given_name,family_name,public_metadata,password_hash_algorithm,password_hash
ada@example.com,true,Ada,Lovelace,"{""plan"":""pro""}",bcrypt,$2a$10$N9qo8uLOickgx2ZMRZoMye…Accounts with no password (social sign-in only) take identity_provider and identity_subject instead. Accounts with neither get the application's "Set your password" email, unless it offers emailed links or codes.
Not available here
- Embedded credential forms: people sign in on the hosted login, where passkeys, emailed links and codes, and social login are offered when the application has them switched on.
- Middleware for Next.js server components.
Plan for these before you commit to a date. If one of them blocks you, tell us which.