Repository navigation
feat(expo): add useNativeToWeb to open a signed-in system browser - #10825
wobsoriano wants to merge 2 commits into
Conversation
useNativeToWeb().openExternalBrowser mints a session transfer URL and opens it in the default browser, so the destination loads with the native user signed in. On Android it starts the VIEW intent through expo-intent-launcher with REFERRER_NAME set to the app, which Chrome needs before FAPI accepts the redeem.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| Name | Type |
|---|---|
| @clerk/expo | Minor |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
…/mobile-450-expo-open-external-browser



Description
Stacked on #10767, which adds the WebView half.
Today, when a signed-in Expo app opens a web page in the system browser, the user lands signed out and has to sign in again. This PR adds
openExternalBrowser, which opens the destination in the default browser with the native user signed in.What to look at:
expo-intent-launcherwithREFERRER_NAMEset toandroid-app://<package>.expo-intent-launcheris a new optional peer.Linking.openURL.Tested with an Expo SDK 58 app on a dev instance with the flag on:
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude under Rob's supervision.
Part of MOBILE-450