The main Firebase Authentication alternatives in 2026 are Clerk (hosted sign-in UI), Auth0 (enterprise identity), Supabase Auth and WoWSQL Auth (auth built into a Postgres backend, so users and app data share one database), and Better Auth (an MIT-licensed library you run inside your own app). Pick by where you want user records to live and whether you need prebuilt UI or enterprise SSO. Then plan the move carefully: Firebase password hashes don't drop straight into most other systems.
We wrote this as the WoWSQL team, so we say plainly where each option beats ours. Prices and limits come from each vendor's own page, read on 28 November 2026. The migration code was type-checked against @wowsql/sdk 3.10.0 and run against local mocks of the WoWSQL and Firebase auth endpoints. It was not run against live projects.
Key facts: WoWSQL Auth
- Sign-in methods: email and password, magic links, email or phone OTP, OAuth with 19 working providers (Google, GitHub, Apple, Microsoft, Discord and more), TOTP two-factor with backup codes, optional Cloudflare Turnstile CAPTCHA, and anonymous sign-in when enabled (auth docs).
- Data: users live in your project's Postgres, and RLS policies use
auth.uid(). Tokens are JWTs;expires_infollows your project's JWT expiry setting (default 24 hours).- Phone OTP: you connect your own SMS provider. WoWSQL's auth service code supports Twilio, Fast2SMS and MSG91 and has no platform SMS fallback, so check the options under Authentication in your dashboard.
- Price (pricing): Free includes 10,000 monthly active users; Pro ($25/month) includes 100,000, then $0.00325 per extra user; Scale ($99/month) includes 2,000,000. Auth comes with the database, storage and realtime.
- Not in the docs: prebuilt sign-in UI components, native SAML for your end users (the OAuth list includes WorkOS and Keycloak, but Keycloak can't be used for sign-in yet), and a bulk import that keeps Firebase password hashes.
The options side by side
| Free tier | Paid entry | Phone / SMS | Where users live | Strong point | |
|---|---|---|---|---|---|
| Firebase Auth | No cost up to 50K MAU with Identity Platform; SAML/OIDC free up to 50 MAU (pricing) | Pay as you go: $0.0055/MAU from 50K to 100K (Identity Platform) | Billed per SMS, not on Spark; India $0.07 per SMS, first 10 a day free | Google's servers | Deep Firebase integration, generous free MAU |
| Clerk | Hobby: 50,000 monthly retained users per app (pricing) | Pro $25/month ($20 billed yearly), then $0.02 per retained user | Not on Hobby; $0.01 per SMS in US/Canada, market rate elsewhere | Clerk's servers | Polished prebuilt UI and user profiles |
| Auth0 | 25,000 MAU (pricing) | Essentials $35/month for up to 500 MAU | Passwordless authentication included on Free | Auth0's servers | Enterprise connections, SSO, mature tooling |
| Supabase Auth | 50,000 MAU, 2 projects, paused after 1 week idle (pricing) | Pro from $25/month (100,000 MAU, then $0.00325) | Bring your own: Twilio, MessageBird, Vonage, Textlocal (docs) | Your Postgres | SAML SSO, prebuilt components, big ecosystem |
| Better Auth | Free, MIT licence (GitHub) | Your hosting costs | Phone-number plugin; you pick the SMS sender | Your own database | Full control, no per-user fees |
| WoWSQL Auth | 10,000 MAU | Pro $25/month (100,000 MAU, then $0.00325) | Bring your own: Twilio, Fast2SMS, MSG91 | Your Postgres | Auth, Postgres, REST, storage and realtime in one plan; Mumbai, US East or Frankfurt |
Clerk counts a user as "retained" when they come back 24 or more hours after signing up, so its numbers aren't directly comparable with MAU. Better Auth's site showed a "Better Auth is joining Vercel" announcement when we checked on 28 November 2026; the GitHub repository is MIT-licensed. Neon also lists a managed Better Auth on its plans (Neon pricing).
Where WoWSQL is weaker: our free tier (10,000 MAU) is smaller than Firebase, Clerk, Supabase or Auth0. We don't ship drop-in sign-in UI like Clerk, Auth0 or Supabase. And if you sell to enterprises that ask for SAML SSO, Auth0, Supabase or Clerk fit better today; WoWSQL's provider list includes WorkOS, but we haven't tested an enterprise SSO setup through it.
Which one fits your app?
- You want sign-in screens done by Friday and don't mind a separate user store: Clerk.
- Enterprise customers, SAML, SCIM, compliance questionnaires: Auth0, or Supabase on its higher tiers.
- You're leaving Firebase for Postgres anyway: Supabase Auth or WoWSQL Auth, so users, RLS and data live together. See Firestore to Postgres: model documents as tables.
- You want zero vendor auth and already run a server: Better Auth.
- Phone-first app in India: any option where you bring your own DLT-registered SMS provider. Cost per OTP matters more than the MAU price; see mobile app backends for India.
What it costs at 60,000 active users
List prices only, before SMS, tax and add-ons, assuming every active user counts:
- Firebase with Identity Platform: 10,000 users above the free 50,000 × $0.0055 = $55/month.
- Supabase: above the Free limit, so Pro at $25/month (100,000 MAU included), plus compute if you need more.
- WoWSQL: Pro at $25/month (100,000 MAU included), with the database, storage and realtime in the same price.
- Clerk: Pro $25 + 10,000 × $0.02 = $225/month if all 60,000 are retained users; less if many don't come back.
- Auth0: past the free 25,000 MAU; at this size you'd use its price calculator or sales.
Moving users off Firebase Auth
Firebase stores passwords with its own modified scrypt. firebase auth:export exports scrypt hashes, and you need your project's hash parameters (signer key, salt separator, rounds, memory cost) to verify them anywhere else (Firebase CLI docs). Supabase publishes scripts that import those users (Supabase guide, updated 10 November 2026). WoWSQL's docs don't describe a hash import, so there are three honest routes:
- Social sign-in users: nothing to move. Enable the same providers in WoWSQL, and match people to their old data by verified email on first sign-in.
- Everyone, quickly: email a magic link or a password reset. Simple, but some users won't come back.
- Password users, quietly (lazy migration): keep Firebase running for a few months. When a WoWSQL sign-in fails, check the password against Firebase; if it's right, create the WoWSQL account with that same password.
// lazy-migrate.ts: server-side sign-in that moves Firebase password users on first login
import { ProjectAuthClient } from '@wowsql/sdk'
const auth = new ProjectAuthClient({
projectUrl: process.env.WOWSQL_URL!, // https://myproject.wowsqlconnect.com
apiKey: process.env.WOWSQL_ANON_KEY!, // wowsql_anon_...
})
const FIREBASE_KEY = process.env.FIREBASE_WEB_API_KEY!
const FIREBASE_AUTH = process.env.FIREBASE_AUTH_URL ?? 'https://identitytoolkit.googleapis.com/v1'
async function firebasePasswordOk(email: string, password: string): Promise<boolean> {
const res = await fetch(`${FIREBASE_AUTH}/accounts:signInWithPassword?key=${FIREBASE_KEY}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email, password, returnSecureToken: false }),
})
return res.ok
}
export async function signIn(email: string, password: string) {
try {
return await auth.signIn({ email, password }) // already migrated
} catch {
if (!(await firebasePasswordOk(email, password))) {
throw new Error('Invalid email or password') // same message either way
}
await auth.signUp({ email, password }) // first login since the move
return auth.signIn({ email, password })
}
}
accounts:signInWithPassword is Firebase's documented REST endpoint (Firebase Auth REST API). In our mock run, the first login created the WoWSQL account, the second went straight to WoWSQL, and wrong or unknown passwords got the same error. Before relying on it, test three things on your project: whether new accounts must verify their email before signIn succeeds, how users with 2FA in Firebase should be handled, and rate limits (the endpoint calls two services per failed attempt, so keep CAPTCHA on). Run this only on your server, and after a cut-off date, send the remaining users a reset link and switch Firebase off.
Adding Google sign-in on WoWSQL
import { ProjectAuthClient } from '@wowsql/sdk'
const auth = new ProjectAuthClient({ projectUrl: 'https://myproject.wowsqlconnect.com', apiKey: 'wowsql_anon_...' })
// "Continue with Google": get the provider URL, then send the browser there
export async function startGoogle() {
const { authorizationUrl } = await auth.getOAuthAuthorizationUrl('google', 'https://yourapp.com/auth/callback')
window.location.href = authorizationUrl
}
// Callback page: WoWSQL redirects back with access_token and refresh_token in the query string
export function finishOAuth() {
const q = new URLSearchParams(window.location.search)
const accessToken = q.get('access_token'), refreshToken = q.get('refresh_token')
if (!accessToken || !refreshToken) throw new Error('Sign-in was cancelled')
auth.setSession({ accessToken, refreshToken })
return auth.getUser(accessToken)
}
Configure the Google client ID and secret in your project first; an unconfigured provider returns 400. Clear the tokens out of the address bar after reading them (history.replaceState). The full flow, including identity linking, is in Add social login with OAuth.
Where Firebase Auth is still the right call
If your app stays on Firestore, Cloud Functions and FCM, Firebase Auth's integration and its 50,000 no-cost MAU are hard to beat, and you avoid a migration entirely. Move when you're moving your data to SQL, when you need your user table next to your app tables for joins and RLS, or when you want to choose your own SMS provider and region.
Related guides
- Auth as a service compared
- How to migrate Firebase to Postgres
- Best Firebase alternatives in 2026
- Cloudflare Turnstile CAPTCHA for WoWSQL Auth
- Upload images from React to cloud storage
FAQ
What is the best alternative to Firebase Authentication?
It depends on your stack. Clerk is quickest for polished hosted sign-in UI, Auth0 suits enterprise SSO, Supabase Auth and WoWSQL Auth suit apps moving to Postgres because users and data share one database, and Better Auth suits teams that want an open-source library on their own servers.
Firebase Auth vs Clerk: which should I use?
Choose Clerk for prebuilt sign-in and profile screens and a strong React and Next.js experience; its Hobby plan covers 50,000 monthly retained users per app. Choose Firebase Auth if you're on Firebase already. Clerk SMS codes need a paid plan, while Firebase bills SMS per message on Blaze.
Is there a Firebase Auth alternative that uses Postgres?
Yes. Supabase Auth and WoWSQL Auth store users in your project's Postgres database and work with Row Level Security through auth.uid(). Better Auth can also store users in your own Postgres database, which you host.
Can I migrate Firebase users without resetting passwords?
Sometimes. Firebase exports scrypt password hashes plus project hash parameters, and some providers, including Supabase, publish import tools for them. WoWSQL has no documented hash import, so use a lazy migration (verify the old password with Firebase on first login, then create the account) or send reset links.
How much does phone OTP cost with Firebase alternatives?
SMS is usually billed separately from MAU. Firebase charges per SMS sent (India is $0.07, with the first 10 a day not billed). Clerk charges $0.01 per SMS in the US and Canada and market rates elsewhere. Supabase and WoWSQL use your own SMS provider account, so you pay that provider's rates.
Does WoWSQL Auth have prebuilt login UI?
No prebuilt components are documented. You build your own forms and call the SDK (signUp, signIn, sendOtp, getOAuthAuthorizationUrl) or the REST endpoints. That gives you full control over design, but it takes longer than Clerk's or Supabase's drop-in UI.