Skip to Content
entapex-stack

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 backend

pnpm 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 + PostgresSupabaseConvex
apps/serverHono API with tRPCThe Supabase project: migrations, config.tomlConvex functions in convex/
Data lives inNeon or Supabase PostgresSupabase PostgresConvex
Who sees whatEvery query filters by ctx.user.idRow-level security policiesEvery function checks requireUserId(ctx)
pnpm dev without accountsYes: local PGlite databaseNeeds Docker for local SupabaseYes: local Convex deployment
pnpm api (call the API as test users)Yes, on a throwaway databaseTest the policies with SQL (see the test-api skill)Yes, against your local deployment

Auth providers

Better AuthClerkWorkOSSupabase AuthConvex Auth
WithDrizzle, ConvexEvery backendEvery backendSupabaseConvex
Users live inYour databaseClerkWorkOSSupabaseConvex
Web sign-inEmail and password formClerk's componentsWorkOS hosted pageEmail and password formUsername and password form
Android sign-inEmail and password formClerk's hosted page in the browserWorkOS hosted page in the browserEmail and password formUsername and password form
Works before setupYesWeb: keyless mode while developingNo: needs a client IDWith local SupabaseYes

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

  1. Create an application at dashboard.clerk.com.
  2. Copy the publishable key and the secret key from Configure → API keys into the .env files the README names.
  3. 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/.env as CLERK_JWT_ISSUER_DOMAIN.

WorkOS

  1. Create an application at dashboard.workos.com and turn on AuthKit.
  2. Under Redirects, add http://localhost:3000/callback, and for Android the redirect Expo Go prints (exp://…/--/callback).
  3. Copy the client ID into the .env files the README names.
  4. 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.

On this page