fix(expo): sync iOS native client via ClerkKit#8851
Conversation
🦋 Changeset detectedLatest commit: 01f0177 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Description
Fixes iOS native UI after a user signs in through the Expo JS SDK first.
In that flow, JS has the signed-in client token, but ClerkKit can still have stale native client state. The Expo bridge now passes the JS token to ClerkKit through the
FrameworkIntegrationSPI from clerk/clerk-ios#477.This also removes the bridge's manual keychain handling. ClerkKit now owns the device-token write, cached-client invalidation, and refresh without a stale
x-clerk-client-id; Expo only hands over the token and reads it back through ClerkKit.Do not merge until
clerk-iosis released with that SPI andCLERK_IOS_VERSIONis bumped.Changes
Clerk.shared.updateDeviceToken(token)andClerk.shared.deviceTokenin the iOS bridge.useNativeSession()after native client sync points so it does not show stale session state.Testing
pnpm --filter @clerk/expo test pnpm --filter @clerk/expo format:check pnpm --filter @clerk/expo lintlintpasses with the existing 15 warnings.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change