Better Auth + Convex Integration Issue: Users Not Persisting to Database
Environment:
- React Native/Expo app
- better-auth@1.3.23, @better-auth/expo@1.3.23, @convex-dev/better-auth@0.8.6, convex@1.27.3 (all latest)
Problem:
Authentication works (signup, signin, tokens generated) but users are NOT persisted to Convex database. Better Auth appears to use in-memory storage fallback.
Setup (following official docs):
What happens:
1. User signs up via /api/auth/sign-up/email
2. Better Auth returns success with user ID/token
3. User can sign in successfully
4. BUT: Convex tables remain empty (verified via dashboard)
5. Better Auth recognizes returning users ("existing email") without database persistence
Code:
Confirmed:
- Adapter never called for DB operations
- Sessions work only until restart (in-memory)
- Direct Convex writes work fine
Question: Is this a known React Native/Expo integration issue? The adapter isn't being called. Any specific RN/Expo configuration needed? This makes the integration unusable for production apps.
cc: @Wayne
