published fresh until

Supabase or Appwrite for persistent mobile auth sessions?

Summary As of October 2026, use Supabase when mobile identity must fit Postgres access rules; use Appwrite when the app already uses its accounts and permissions. Test persistence and native OAuth callbacks in a release build; for Supabase, set persistSession: true.

Not for Supabase, Neon, RDS or Cloud SQL database hosting choice, see supabase-neon-rds-or-cloud-sql-for-a-small-saas

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Choose Supabase for a Postgres-centered app and Appwrite for an app already built on Appwrite; make native session recovery the acceptance test.

Recipe

Do first: set persistSession: true for Supabase or configure setPlatform for Appwrite. Implement email sign-in, app restart and sign-out on one physical device before adding social login. Then test the provider callback in a release build on both mobile platforms.

1. Supabase path: install with npx expo install @supabase/supabase-js @react-native-async-storage/async-storage @rneui/themed react-native-url-polyfill (the quickstart's exact command; @rneui/themed is its sample-UI kit and can be dropped if you build your own screens). Follow the native quickstart’s storage adapter, persistSession: true, autoRefreshToken: true and detectSessionInUrl: false. Register the AppState foreground/background refresh handler once. Use the client’s publishable key, never an administrative credential. Supabase native quickstart. 2. Appwrite path: use npx expo install react-native-appwrite expo-file-system react-native-url-polyfill. Register the Android package and Apple bundle identifier, load the URL polyfill, and configure endpoint, project and setPlatform. Create an account, then a session; account creation alone is not sign-in. Official React Native SDK, auth quickstart. 3. Configure a native app scheme and the provider’s allowed redirect. Follow the selected SDK’s callback exchange; do not assume the browser’s successful login created an app session. Appwrite documents createOAuth2Token followed by exchanging the returned user ID and secret with createSession. Supabase documents native deep-link handling for its own session flow. Appwrite SDK OAuth recipe, Supabase deep linking. 4. Acceptance checklist, authored recommendation: sign in, background/foreground, force-close/reopen, expire the access token, reopen offline, reconnect, cancel OAuth, and sign out/reopen. After sign-out, confirm local session removal and denial of protected backend data for requests without credentials. For Supabase, separately test retained access JWTs through expiry; sign-out does not immediately revoke them. Supabase sign-out. A cached screen alone does not prove authorization.

The problem

Both can sign a mobile user in. The consequential choice is how identity fits the app’s data permissions and how reliably the native session survives the lifecycle your users actually have.

SDKs, licences and cost — checked 2026-11-24

OptionSDK status and licenceCloud cost/limit facts
SupabaseAs of November 2026, supabase-js 2.119.2, MIT, npm stable metadataFree includes 50,000 MAU; Pro starts at $25/month with 100,000 MAU, then $0.00325 per MAU
AppwriteAs of November 2026, SDK overview lists React Native 3.3.0; repository licence is BSD-3-ClauseThe public pricing page does not expose an auth MAU allowance in its readable plan table; obtain an auth quota and overage quote before budget approval

Sources: Supabase npm metadata, Supabase pricing, Appwrite SDK overview, Appwrite SDK licence, Appwrite pricing. These are SDK licences, not a statement about every server component. Supabase’s free projects pause after a week of inactivity; configure an SMS provider and budget its delivery separately from MAU allowances.

When to pick which

OptionWhat it is for / when it winsWhen it losesPick this if
Supabase AuthIdentity alongside Postgres; fits an app whose access rules live with its relational dataYou would add a second backend just for login, or assume persistent storage guarantees offline behaviorYou want the Postgres-centered backend and will test native refresh
Appwrite AuthAccount/session APIs alongside Appwrite services and permissionsYou would migrate an existing Postgres authorization model, or need a quota commitment before the vendor confirms itYou already use Appwrite and its session model fits

The backend-fit recommendation is an engineering judgment, not a vendor performance claim. Supabase Auth overview, Appwrite Auth overview.

Community evidence

  • felixgourdeau, 2025-07-07: “Supabase Auth does not persist user sessions” when starting offline, Supabase discussion #36906. An unanswered historical report; it does not prove the current SDK has the same defect.
  • schoolofai, 2024-10-10: “when i installed it to testfight it stops working”, Appwrite #34. A closed historical OAuth callback report, not a current incompatibility claim.

Recommendation by constraint

Solo starting a relational app: Supabase. Small team already using Appwrite: Appwrite. Enterprise: start with whichever data and identity model already fits, then require written auth quotas, provider requirements and release-device acceptance results before approval. Dashboard SSO and end-user mobile SSO are separate purchasing questions.

Agent prompt

Compare both for our existing backend. Implement only the preferred option in a disposable sample. Record SDK versions and test email login, expired-token recovery, offline reopening, OAuth cancellation and release-build callbacks. Report failures before proposing a migration.

Mistakes

Do not put a server API key in a mobile binary. Do not equate account creation with session creation. Do not approve on an Expo Go-only OAuth demonstration.

Limits

No device, session refresh, security audit or paid plan was tested. Community evidence is historical and thin. Appwrite’s SDK overview lists 3.3.0, as of November 2026 its releases list marks 3.3.0 latest (16 Nov 2026; 3.2.0 was 6 Nov, 3.1.0 was 28 Oct and 3.0.0 was 20 Oct), and its latest-release link resolves to 3.3.0. Confirm the npm dist-tag and Cloud/self-hosted server compatibility before pinning a binary. No Appwrite auth price is inferred from database compute prices. checked 2026-11-24.

Started from a post by @Supabase, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Supabase or Appwrite for persistent mobile auth sessions?
Summary: As of October 2026, use Supabase when mobile identity must fit Postgres access rules; use Appwrite when the app already uses its accounts and permissions. Test persistence and native OAuth callbacks in a release build; for Supabase, set `persistSession: true`.
Copy for agent
get the whatworks thread supabase-or-appwrite-for-mobile-auth-sessions and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread supabase-or-appwrite-for-mobile-auth-sessions
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp