Skip to content

fix: let Android's sign-in browser start Google sign-in - #45

Merged
KMKoushik merged 1 commit into
mainfrom
fix/android-google-signin-2
Nov 3, 2026
Merged

KMKoushik merged 1 commit into
mainfrom
fix/android-google-signin-2

Conversation

@KMKoushik

Copy link
Copy Markdown
Contributor

#44 didn't fix it. The new log line shows what Android's Custom Tab actually sends to /start: Sec-Fetch-Site: cross-site and no Referer, exactly like a link from another website, so there's nothing to tell them apart.

  • Remove the isOwnNavigation guard and its 403 page. /start always signs the browser out and starts Google sign-in.
  • Trade-off: another site can link someone to /start and sign them out of splitpro.app on the web (low impact). The sign-in itself stays protected by Google's account picker (prompt=select_account), PKCE, and the handoff only accepting a session created after /start.
  • Tests updated (cross-site navigation now starts sign-in). 309 pass, tsc and lint clean.

Android Custom Tabs arrive at /start as a plain cross-site navigation with no
Referer, indistinguishable from a link on another site, so the logout-CSRF
guard refused every Android Google sign-in. Drop the guard: the worst a link
can do is sign the browser out of the web, and the account picker, PKCE and
the fresh-session handoff check still protect the sign-in itself.
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@KMKoushik
KMKoushik merged commit 7ecde5e into main Nov 3, 2026
1 of 2 checks passed
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