Diagnostic step 1
Remove intermediate redirects in the OAuth flow so the browser stays on the same origin chain for the minimal number of hops — redirect elimination is reversible and the most reliable fix observed in testing.
Generated Oct 17, 2026, 9:26:12 AM
Remove intermediate redirects in the OAuth flow so the browser stays on the same origin chain for the minimal number of hops — redirect elimination is reversible and the most reliable fix observed in testing.
If redirects are unavoidable, consider using stateful server-side session tokens passed via the query string for intermediate hops (short-lived one-time tokens) instead of relying solely on cookies, and ensure these tokens are single-use and expire quickly to avoid security issues.
As a diagnostic, set SameSite=None on the cookie (Secure required) and test widely; if this resolves the issue fully, weigh the security trade-offs and consider tightening other controls (CSRF tokens, origin checks) before rolling out. Document this change and revert if unacceptable.
Log user-agent and flow timing for failed attempts (do not log cookie values) to correlate failures with specific browser versions or OEMs; escalate to Chromium bug tracker with a minimal repro if you can craft a small demo that shows cookie loss across cross-subdomain 302 in Custom Tabs.
As a fallback, implement the authorization flow using the AppAuth library with browser-based external auth that returns authorization code via a registered app scheme or claimed HTTPS redirect URI; AppAuth handles many of the edge cases and is reversible if you retain previous flow.