Template · Pro

Expo Supabase template: Supabase Auth with email, Apple and Google

Supabase as a ReadyNative module: sign-in, sign-up, reset and new-password screens on supabase-js, with the session kept in your storage module. The same project gives you Postgres and row-level security.

What you get

This gives you email/password, Sign in with Apple and Google sign-in on top of @supabase/supabase-js, plus the screens to use them: src/app/(auth)/{sign-in,sign-up,reset,new-password} with src/screens/auth/*, a redirect hook in src/hooks/use-auth-redirect.ts that sends signed-out users to /(auth)/sign-in and signed-in users out of (auth) (onboarding still wins first), and, with --with-examples, an example at src/app/examples/auth.tsx. @/lib/auth keeps the same API whichever option you pick, so auth.useSession() and auth.signOut() read the same here as under Clerk or Better Auth - what you also get from Supabase is a Postgres database and row-level security behind the same account. The session is persisted through the storage adapter (@/lib/storage), so it follows whichever storage module you selected.

Screens added
/(auth)/new-password, /(auth)/reset, /(auth)/sign-in, /(auth)/sign-up
Tests included
2
npm packages
@supabase/supabase-js ^2.116.0, expo-apple-authentication ~58.0.3, expo-auth-session ~58.0.18, expo-crypto ~58.0.8
Runs in Expo Go
Yes

Which tier includes it

Pro. Auth is a Pro category: the free tier and Starter ship it switched off. Pro is one payment with lifetime updates. See pricing.

What needs a key

KeyWhere it goesRequired
EXPO_PUBLIC_SUPABASE_URLApp (.env)Yes
EXPO_PUBLIC_SUPABASE_ANON_KEYApp (.env)Yes

Set it up

bun run setup --auth supabase
  1. Supabase: create a project, copy Project URL + anon/publishable key from Settings → API into .env (EXPO_PUBLIC_SUPABASE_URL, EXPO_PUBLIC_SUPABASE_ANON_KEY).
  2. Supabase: run supabase/migrations/20260921000000_delete_user.sql (SQL editor or supabase db push) - the Settings → Delete account row calls rpc('delete_user').
  3. Supabase: Authentication → URL Configuration → add readynative:// and readynative://new-password (your scheme) to Redirect URLs - Google sign-in and the password-reset link return through them.
  4. Supabase: Authentication → Providers → Apple: enable, add the iOS bundle id to Client IDs (native Sign in with Apple).
  5. Supabase: Authentication → Providers → Google: enable with a Web OAuth client id/secret from Google Cloud Console.
  6. Apple: enable the Sign in with Apple capability for the bundle id (EAS does it on the first build).

Then bun run doctor lists any key still missing, with a link to where you get it. The full guide: Supabase Auth docs.

Pairs with

Needs: Storage (expo-sqlite/kv-store or MMKV or AsyncStorage). Setup asks for it in the same run.

Read more

Questions

Which ReadyNative tier includes Supabase Auth?

Pro. Auth is a Pro category: the free tier and Starter ship it switched off. Pro is one payment with lifetime updates.

Does Supabase Auth run in Expo Go?

Yes: Expo Go OK.

Which keys does Supabase Auth need?

In the app's .env: EXPO_PUBLIC_SUPABASE_URL, EXPO_PUBLIC_SUPABASE_ANON_KEY. bun run doctor lists any that are missing.

Can I switch from Supabase Auth to another option later?

Yes. @/lib/auth keeps the same API in every auth option (Supabase Auth, Clerk and Better Auth), so screens written against it keep working when you switch.

Does the template include a Supabase database?

The module wires Supabase Auth. The same Supabase project gives you a Postgres database with row-level security behind that account; the module ships one migration, delete_user, for account deletion.

Is account deletion included?

Yes. Settings has a Delete account row that calls rpc('delete_user'). Run the migration in supabase/migrations/ once to create the function.

Get it

Get Pro · Try the free tier on GitHub