Adjusted the `BETTER_AUTH_URL` in `.env.example` to emphasize its
importance for proper functioning, especially for local development.
Updated the catch-all handler in
`apps/api/app/api/auth/[...all]/route.ts` to directly use the
`auth.handler` from `better-auth`, simplifying the configuration.
Corrected the file path for the TypeScript route definitions in
`apps/api/next-env.d.ts`.
In the iOS app, updated the API endpoints called for passkey sign-in and
registration in `AppState.swift` to include the `/api` prefix, ensuring
they match the backend routes.
Refactored `SignInView.swift` to provide a cleaner and more intuitive
user experience:
- Introduced a toggle (`usePasskey`) to switch between passkey and
email/password authentication.
- Redesigned the UI with distinct sections for each authentication
method.
- Enhanced the email and password form with better styling and
validation feedback.
- Added a "Continue" button for email/password sign-in and "Continue
with Passkey" for passkey authentication.
- Modified the `authenticate` and `authenticateWithPasskey` functions to
correctly invoke the `AppState` methods.
Updated `SignUpView.swift` to use the `authenticate` method for
consistency, which handles both sign-up and sign-in flows.
Set `rpID` and `rpName` for passkey authentication. This is crucial for
WebAuthn to correctly identify the relying party and establish secure
credentials. Additionally, set the `origin` to ensure consistent
communication between the client and server during passkey operations.
This commit introduces the Drizzle ORM schema for the `better-auth`
library. This includes tables for users, sessions, accounts,
verification, organizations, members, invitations, and passkeys, along
with their respective relations.
This schema provides the foundational database structure for user
authentication and authorization within the application, enabling
features like passkey sign-in, organization management, and invitation
handling.
Includes the addition of `@simplewebauthn/server` to the backend's
package.json. This library is essential for handling WebAuthn
operations, enabling passkey authentication.
The passkey plugin was previously imported from `better-auth/plugins`
instead of its dedicated package `@better-auth/passkey`. This change
corrects the import path to resolve the issue.
- Remove duplicate iOS app folder (ShopList/ → consolidated to Bagsy/)
- Remove build artifacts from git tracking
- Remove stale documentation files
- Remove old React Native mobile code
- Add PROJECT_STATUS.md for clear project overview
iOS app is now clearly organized under apps/ios/Bagsy/ with single Xcode project (Bagsy.xcodeproj)
- App now prompts for backend URL on first launch
- Stores in SecureStore for persistence
- Default: http://localhost:3001
- Can be changed in app settings
- Backend setup screen at /app/(auth)/backend-setup.tsx
Original app features restored from first commit:
- Auth screens (sign-in, sign-up, passkey, household)
- Main app screens (lists, stores, aisles)
- API client and websocket hooks
- Zustand state management
- Full UI components
Current blocker: Java/Gradle version compatibility when building locally
The app is properly configured - needs EAS cloud build or fixed local JDK
- Downgraded Expo from 55 to 54.0.0 (Expo Go supported version)
- Using React Native 0.75.0
- Using expo-router 3.4.0
- Dev server ready for testing on physical devices via Expo Go
- Downgraded from Expo 55 canary to 55.0.0 stable (Expo Go compatible)
- Upgraded React Native to 0.76.0
- Upgraded expo-router to 55.0.0 stable
- Should now work with current Expo Go app
- Upgraded from Expo 54 to Expo 55.0.10-canary
- Upgraded React Native from 0.75 to 0.84.1
- Upgraded expo-router to 55.0.9-canary
- Better stability for Expo Go dev server testing
- Updated App.tsx to use proper Stack navigation
- Created ESM-compatible metro.config.js
- Fixed module resolution for monorepo structure
- Dev server now starts successfully
Ready to test on physical devices via Expo Go app
- Added App.tsx with ExpoRoot for file-based routing
- Enables dev server to start without compilation errors
- Ready for Expo Go testing on physical device
To use:
1. Install Expo Go app on iPhone (free)
2. Run: cd apps/mobile && bun run dev
3. Scan QR code with Expo Go
4. App runs on device instantly
- Switched to new architecture mode (RCT_NEW_ARCH_ENABLED=1)
- Created ReactAppDependencyProvider podspec stub
- Added local podspec reference in Podfile
- Reverted RNScreens exclusions (needed for new arch)
- Pod install now completes with 83 deps
BLOCKER: Third-party library codegen not generating required headers
Affected: react-native-safe-area-context, react-native-screens, etc.
These packages require proper Fabric component generation which isn't
happening automatically. This is a known issue with new architecture
setup in monorepos.
RECOMMENDATION: Use EAS cloud build instead - it handles all new
architecture complexity automatically. Requires Apple Developer Program
enrollment (~$99/year) but eliminates these configuration headaches.
- Added COCOAPODS_TRUNK_REPO_UPDATE_DISABLED to Podfile
- Attempted git-based specs repo (too slow on hotspot)
- Attempted HTTP fallback (not supported)
- Attempted CocoaPods monkey-patching
BLOCKER: CocoaPods CDN SSL handshake consistently fails with 'Connection reset'
This is a network-level issue, not fixable in code.
Next steps:
1. Try different network (corporate VPN, different ISP)
2. Ask CocoaPods team if CDN has SSL cert issues
3. Use EAS cloud build (requires Apple Developer Program signup)
4. Manually extract and link frameworks from a working build
- Restored working Podfile.lock from previous commit
- Updated Podfile to disable RNScreens codegen in old arch mode
- Issue: CocoaPods CDN SSL connection unstable
- Solution: Use Ruby 4.0.2 from Homebrew (not system Ruby 2.6)
User needs to reload shell to apply PATH:
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
Then retry: cd apps/mobile/ios && pod install
- Patch Expo.podspec to conditionally call get_folly_config() only in new arch
- Conditionally require ReactAppDependencyProvider (new arch only)
- Downgrade React Native 0.76.0 (instead of 0.73 which had get_folly_config errors)
- Successfully completed pod install, generated Podfile.lock
- Add postinstall script to apply patches automatically on bun install
- iOS build artifacts ready in Bagsy.xcworkspace