Skip to content
Source
Sign inSign up
pingdotgg/t3code

Expose Clerk Google sign-in env vars to Expo #3772

Mergedjuliusmarmingemerged 4 commits intomain fromrefs/pull/3772/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Summary

  • Expose Clerk Google sign-in environment variables through apps/mobile/app.config.ts so Expo and @clerk/expo can read them from extra.
  • Preserve Clerk's expected shape by omitting unset values instead of serializing them as null.
  • Add the iOS Google URL scheme at config time so the Clerk plugin can register it during prebuild.

Testing

  • Not run (PR content only).
  • Existing project checks should be run before merge: vp check and vp run typecheck.

Note

Medium Risk Touches authentication configuration and a major pnpm upgrade with native build patches; misconfigured Google client IDs or lockfile drift could break mobile sign-in or installs, but changes are scoped and CI workaround is documented.

Overview Wires native Clerk Google sign-in into the Expo manifest by adding the four EXPO_PUBLIC_CLERK_GOOGLE_* keys on extra in app.config.ts (flat names, not under clerk), with unset env values left out so the manifest does not emit truthy {} placeholders that break Clerk fallbacks.

The same PR bumps the repo to pnpm 11.10.0: packageManager is updated, pnpm-workspace.yaml moves from onlyBuiltDependencies / ignoredBuiltDependencies to allowBuilds, and the lockfile is regenerated (including a new hash for the react-native-screens patch). That patch now adds Android no-op setters for iOS-only glass-chrome header props so codegen still compiles after the existing screens customization.

CI: preview and production EAS workflows install eas-cli with npm instead of pnpm, because pnpm 11 hard-fails installing dtrace-provider outside the repo’s allowBuilds config.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5594edc7a8c14a1f07f6f79cc616fab823d042e7. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Expose Clerk Google sign-in env vars to the Expo mobile app config

  • Adds four Google sign-in fields (EXPO_PUBLIC_CLERK_GOOGLE_WEB_CLIENT_ID, EXPO_PUBLIC_CLERK_GOOGLE_IOS_CLIENT_ID, EXPO_PUBLIC_CLERK_GOOGLE_ANDROID_CLIENT_ID, EXPO_PUBLIC_CLERK_GOOGLE_IOS_URL_SCHEME) to the extra block in app.config.ts; unset values are omitted rather than set to null.
  • Fixes EAS Preview and Production workflows to install eas-cli via npm instead of pnpm.
  • Updates pnpm-workspace.yaml to use allowBuilds per-dependency flags, replacing the previous ignoredBuiltDependencies/onlyBuiltDependencies approach.
  • Adds a patch for react-native-screens that stubs out iOS-only header props on Android to prevent codegen-native interface errors.
Macroscope summarized 5594edc.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 9c3e270b-107e-4ab2-8630-b6746212f5b5

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `t3code/clerk-google-signin`

      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. juliusmarminge added labelseas-build

    4. juliusmarminge removed labelseas-build

    5. juliusmarminge added labels🚀 Mobile Continuous Deployment

    6. github-actions[bot](GitHub profile, opens in a new tab)commented

      🚀 Expo continuous deployment is ready!

      • Project → t3-code
      • Platforms → android, ios
      • Scheme → t3code-preview
       🤖 Android🍎 iOS
      Fingerprintd7423e18ea425d44a524b6af81fa82d5ab4ed54da16bc74f7d86d49b427dcc194949c91f596fa894
      Build DetailsBuild Permalink
      DetailsDistribution: INTERNAL
      Build profile: preview:dev
      Runtime version: d7423e18ea425d44a524b6af81fa82d5ab4ed54d
      App version: 0.1.0
      Git commit: 455df925df35177fcb1e837e1b2c73df575f942c
      Build Permalink
      DetailsDistribution: INTERNAL
      Build profile: preview:dev
      Runtime version: a16bc74f7d86d49b427dcc194949c91f596fa894
      App version: 0.1.0
      Git commit: 455df925df35177fcb1e837e1b2c73df575f942c
      Update DetailsUpdate Permalink
      DetailsBranch: pr-3772
      Runtime version: d7423e18ea425d44a524b6af81fa82d5ab4ed54d
      Git commit: 455df925df35177fcb1e837e1b2c73df575f942c
      Update Permalink
      DetailsBranch: pr-3772
      Runtime version: a16bc74f7d86d49b427dcc194949c91f596fa894
      Git commit: 455df925df35177fcb1e837e1b2c73df575f942c
      Update QR
    7. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs human review

      This PR enables Google native sign-in by exposing Clerk authentication credentials to the Expo mobile app. Changes affecting authentication functionality require human review to ensure proper security considerations.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    8. juliusmarminge merged this0e00408

    9. juliusmarminge closed this

Sign in to join this conversation.