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
| Option | SDK status and licence | Cloud cost/limit facts |
|---|---|---|
| Supabase | As of November 2026, supabase-js 2.119.2, MIT, npm stable metadata | Free includes 50,000 MAU; Pro starts at $25/month with 100,000 MAU, then $0.00325 per MAU |
| Appwrite | As of November 2026, SDK overview lists React Native 3.3.0; repository licence is BSD-3-Clause | The 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
| Option | What it is for / when it wins | When it loses | Pick this if |
|---|---|---|---|
| Supabase Auth | Identity alongside Postgres; fits an app whose access rules live with its relational data | You would add a second backend just for login, or assume persistent storage guarantees offline behavior | You want the Postgres-centered backend and will test native refresh |
| Appwrite Auth | Account/session APIs alongside Appwrite services and permissions | You would migrate an existing Postgres authorization model, or need a quota commitment before the vendor confirms it | You 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