t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Android Google social login does nothing when tapped

Open HugoVizcainoSantana opened this issue 3 months ago • 5 comments

Before submitting

  • [x] I searched existing issues and did not find a native Android report of Google social login being a no-op.
  • [x] Related but distinct: desktop Google OAuth redirect issues (#5315, #4840, #4815, #5239) and mobile sign-out crash (#4888).

Area

apps/mobile on Android — Clerk AuthView social login (T3 Connect / account sign-in).

Steps to reproduce

  1. Open T3 Code Mobile on Android.
  2. Open Settings → sign in / T3 Connect auth (Clerk AuthView).
  3. Tap the Google social login button.

Expected behavior

The native Google account picker / Sign in with Google flow starts, and completing it signs the user into Clerk.

Actual behavior

Tapping Google appears to do nothing — no account picker, browser, or visible error.

Notes from investigation

Mobile uses Clerk's native AuthView (apps/mobile/src/features/settings/SettingsAuthRouteScreen.tsx). That surface shows social buttons based on the Clerk Dashboard, but native Google sign-in still needs app-side credentials.

apps/mobile/app.config.ts already forwards these into Expo extra for @clerk/expo:

  • EXPO_PUBLIC_CLERK_GOOGLE_WEB_CLIENT_ID (required even on Android)
  • EXPO_PUBLIC_CLERK_GOOGLE_ANDROID_CLIENT_ID
  • plus iOS-only EXPO_PUBLIC_CLERK_GOOGLE_IOS_CLIENT_ID / EXPO_PUBLIC_CLERK_GOOGLE_IOS_URL_SCHEME

Those vars are not documented in .env.example, and scripts/lib/public-config.ts does not map them from T3CODE_* aliases. Clerk's AuthView docs also note that without native OAuth credential setup, social buttons can appear but fail when tapped.

Other Android-specific failure modes to check:

  • Package name must match the variant (com.t3tools.t3code, .dev, or .preview)
  • Google Cloud Android OAuth client SHA-1 must match the keystore that signed the running build
  • Clerk Dashboard → Native Applications needs the same package + SHA-256
  • Clerk Google SSO should use custom credentials with the Web client ID/secret

Environment

  • Native Android build of T3 Code Mobile
  • Exact variant / store vs local / EAS build not captured in this report

Suggested triage

  1. Confirm resolved Expo config includes the Google client IDs for the failing variant (expo config / EAS env).
  2. Confirm Google Cloud + Clerk Native Applications match that build's package name and signing cert.
  3. Capture adb logcat while tapping Google for Clerk / Google Sign-In / DEVELOPER_ERROR.

HugoVizcainoSantana avatar Aug 07 '26 10:08 HugoVizcainoSantana

Exact variant / store vs local / EAS build not captured in this report

Kinda important information. Did u install from Play Store or built it yourself?

https://github.com/user-attachments/assets/93b0ed49-c92d-4f91-bae9-23193edae8c8

juliusmarminge avatar Aug 07 '26 10:08 juliusmarminge

Installed from Play Store. Version 1.0.1

I have tried uninstalling and redownloading to no avail. It's just google social login that it's not working for me. Email login worked fine, and other social logins also seems to work properly, but have not tested

Video attached.

https://github.com/user-attachments/assets/bfa65ea4-1617-4ee9-a055-63afc2a0d244

HugoVizcainoSantana avatar Aug 07 '26 13:08 HugoVizcainoSantana

Yeah, email login is working on windows too.

indishere avatar Aug 07 '26 16:08 indishere

Did @t3dotgg not fix this recently?

Saw he said he did on X.

indishere avatar Aug 07 '26 16:08 indishere

Working on 1.0.2 on Android. Closing this issue!

HugoVizcainoSantana avatar Aug 10 '26 07:08 HugoVizcainoSantana