Backends and auth
What each backend and auth provider sets up, what runs without accounts, and the steps only you can do.
Every combination the picker offers is generated, type checked and built in CI on every change: 3 platform sets × 13 backend and auth pairs, 39 projects in all.
How the apps are wired
Pages and screens never talk to the backend or the auth provider directly. They use two seams, so the same todo screens work in every combination:
const { user, isPending, signOut } = useSession(); // lib/session: from your auth provider
const todos = useTodos(Boolean(user)); // hooks/use-todos.ts: from your backendpnpm gen feature writes a new data hook plus a page and a screen in the same shape, and the
backend's own part (table, API) next to it.
Backends
| Drizzle + Postgres | Supabase | Convex | |
|---|---|---|---|
apps/server | Hono API with tRPC | The Supabase project: migrations, config.toml | Convex functions in convex/ |
| Data lives in | Neon or Supabase Postgres | Supabase Postgres | Convex |
| Who sees what | Every query filters by ctx.user.id | Row-level security policies | Every function checks requireUserId(ctx) |
pnpm dev without accounts | Yes: local PGlite database | Needs Docker for local Supabase | Yes: local Convex deployment |
pnpm api (call the API as test users) | Yes, on a throwaway database | Test the policies with SQL (see the test-api skill) | Yes, against your local deployment |
Auth providers
| Better Auth | Clerk | WorkOS | Supabase Auth | Convex Auth | |
|---|---|---|---|---|---|
| With | Drizzle, Convex | Every backend | Every backend | Supabase | Convex |
| Users live in | Your database | Clerk | WorkOS | Supabase | Convex |
| Web sign-in | Email and password form | Clerk's components | WorkOS hosted page | Email and password form | Username and password form |
| Android sign-in | Email and password form | Clerk's hosted page in the browser | WorkOS hosted page in the browser | Email and password form | Username and password form |
| Works before setup | Yes | Web: keyless mode while developing | No: needs a client ID | With local Supabase | Yes |
Supabase doesn't offer Better Auth. Supabase checks sign-ins itself (that's what row-level security runs on) and only trusts Supabase Auth, Clerk and WorkOS. For Better Auth on Supabase's Postgres, pick Drizzle + Postgres with Supabase as the host.
Settings
The CLI writes a .env and a .env.example in each app that needs settings:
apps/server, apps/web and apps/mobile. Secrets it can make (Better Auth, the WorkOS cookie
password) are already filled in. The values only you can get are left empty, and the project's
README lists them under Setup. Until they're set, the apps show which setting is missing
instead of crashing.
What only you can do
Clerk
- Create an application at dashboard.clerk.com.
- Copy the publishable key and the secret key from Configure → API keys into the
.envfiles the README names. - With Supabase: turn on Integrations → Supabase in Clerk, then add Clerk under Third-party
auth in Supabase. With Convex: turn on Integrations → Convex and copy its Frontend API
URL into
apps/server/.envasCLERK_JWT_ISSUER_DOMAIN.
WorkOS
- Create an application at dashboard.workos.com and turn on AuthKit.
- Under Redirects, add
http://localhost:3000/callback, and for Android the redirect Expo Go prints (exp://…/--/callback). - Copy the client ID into the
.envfiles the README names. - With Supabase: add a JWT template with
"role": "authenticated", then add WorkOS under Third-party auth in Supabase.
Supabase
Local Supabase runs in Docker: start Docker before pnpm dev. To use a hosted project instead,
create one, run supabase link and db:push in apps/server, and put its URL and publishable key
in the apps' .env files.
Convex
Nothing until you deploy. pnpm dev runs a local deployment; run convex login in apps/server
to move it to the cloud.