Skip to content

Fix pairing screen on cold restart from Expo Go

Latest

Choose a tag to compare

@TongilKim TongilKim released this 19 Mar 08:49
cf34b16

Bug Fixes

  • Fix pairing screen shown on cold restart from Expo Go (#54, #56)

    • Expo Go caches the initial deep link URL — on cold restart, the same code= from the previous QR scan caused the app to sign out
      the valid session and show the pairing screen
    • Track last redeemed pairing code in SecureStore to skip re-pairing for cached URLs
    • Cache auth tokens in SecureStore adapter to recover sessions when Supabase's internal refresh fails on cold start (network not
      ready)
    • Validate expires_at on sessions returned by getSession() and refresh expired tokens synchronously
    • Skip cached token recovery when a new pairing code is present to avoid restoring old sessions during re-pairing
  • Fix mobile server setup (f3ad7c5)

    • Reset local changes before git pull in mobile server setup to avoid conflicts

Improvements

  • Auto-detect local mobile project in monorepopnpm start from apps/cli now automatically uses the sibling apps/mobile
    directory instead of cloning to ~/.clautunnel/repo/, eliminating the need for clautunnel mobile-setup during development