EAS/TestFlight setup and LinkedIn mobile deep-link#129
Merged
Conversation
- Add eas.json with development, preview, and production build profiles - Add iOS bundleIdentifier and ITSAppUsesNonExemptEncryption to app.json - Add EAS projectId to app.json extra config - Add referenced app icon/splash assets
Without the EXPO_PUBLIC_ prefix, Expo's bundler strips these vars from production builds, leaving them undefined and breaking Pusher connections in EAS/TestFlight builds.
- Change app display name from 'shatter-mobile' to 'Shatter' - Disable expo-camera microphone/audio permissions; only QR scanning is used, so requesting mic access risks App Store rejection
Camera is only used for QR scanning; audio recording is not needed.
Backend: encode 'platform' (mobile|web) into the signed state JWT in linkedinAuth and linkedinLink. In linkedinCallback, verify state first and resolve the redirect target from the platform claim — mobile gets shattermobile://auth, web keeps the existing FRONTEND_URL flow. All success/error redirects in the callback use the resolved target so the mobile app receives the auth code (or error) via deep link. Mobile: switch LinkedIn login from openBrowserAsync to openAuthSessionAsync so the in-app browser closes on the deep-link return and the redirect URL is captured in JS. Extract a shared loginWithLinkedIn helper that handles the full flow (open browser, parse code, exchange, fetch user) and call it from both LoginForm and SignupForm with proper loading/error state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
eas.json, app icons, iOS bundle identifier, EAS projectId)expo-camera(QR-only) and remove AndroidRECORD_AUDIOEXPO_PUBLIC_*so they ship in production buildsplatformclaim in the signed state JWT and redirects mobile clients toshattermobile://auth/...; mobile usesWebBrowser.openAuthSessionAsyncand a sharedloginWithLinkedInhelper used by both LoginForm and SignupFormTest plan
eas build --platform ios)${FRONTEND_URL}/auth/callback?code=...