[GH-ISSUE #3607] Expo linkSocial should trigger Browser.openAuthSessionAsync #26983

Closed
opened 2026-04-17 17:45:27 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Ferossgp on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3607

Is this suited for github?

  • Yes, this is suited for github

When using expo, linkSocial will not open the auth url in expo browser.

Describe the solution you'd like

When triggering a social auth AuthClient.signIn.social, expo plugin will intercept the link and will trigger the expo browser. Seems like as a part of the plugin, it makes sense to also handle the AuthClient.linkSocial because it follows the same pattern.

Describe alternatives you've considered

Manually calling the same code path as signIn does to the url from linkSocial with Browser.openAuthSessionAsync

Additional context

Adding it now might be a breaking change for users of expo package that already have implemented manual browser handling. If this change is fine with maintainers, I could open a PR for that.

Originally created by @Ferossgp on GitHub (Jul 25, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3607 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. When using expo, `linkSocial` will not open the auth url in expo browser. ### Describe the solution you'd like When triggering a social auth `AuthClient.signIn.social`, expo plugin will intercept the link and will trigger the expo browser. Seems like as a part of the plugin, it makes sense to also handle the `AuthClient.linkSocial` because it follows the same pattern. ### Describe alternatives you've considered Manually calling the same code path as signIn does to the url from linkSocial with Browser.openAuthSessionAsync ### Additional context Adding it now might be a breaking change for users of expo package that already have implemented manual browser handling. If this change is fine with maintainers, I could open a PR for that.
GiteaMirror added the locked label 2026-04-17 17:45:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26983