Skip to content

Parse LinkedIn deep-link with expo-linking#130

Merged
rxmox merged 2 commits intomainfrom
eas-testflight-setup
May 1, 2026
Merged

Parse LinkedIn deep-link with expo-linking#130
rxmox merged 2 commits intomainfrom
eas-testflight-setup

Conversation

@rxmox
Copy link
Copy Markdown
Collaborator

@rxmox rxmox commented May 1, 2026

Summary

  • React Native's built-in URL constructor does not robustly handle custom URL schemes (e.g. shattermobile://), causing new URL(result.url) in the LinkedIn OAuth helper to fail and login to silently break in the built app
  • Switch to Linking.parse from expo-linking, which is purpose-built for custom-scheme URLs and is already a project dependency

Test plan

  • Local Expo dev: tap "Sign in with LinkedIn" → in-app browser closes after authorization → Linking.parse extracts the auth code → exchange + userFetch complete → app lands on JoinEventPage authenticated
  • Repeat on TestFlight build after eas build --platform ios
  • Web LinkedIn login regression: existing flow still redirects to ${FRONTEND_URL}/auth/callback?code=... and completes

rxmox added 2 commits May 1, 2026 00:59
React Native's built-in URL constructor does not robustly handle custom
schemes like shattermobile://, causing the deep-link callback URL to
fail to parse and login to silently fail. Switch to Linking.parse from
expo-linking, which is purpose-built for custom-scheme URLs and is
already a project dependency.
@rxmox rxmox merged commit df66205 into main May 1, 2026
2 checks passed
@rxmox rxmox deleted the eas-testflight-setup branch May 2, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant