desktop: Google OAuth login blocked in in-app browser on 2.4.3 (works on 2.3.0)
Description
Google OAuth sign-in fails in the OpenCode Desktop in-app browser on version 2.4.3 with Google's "This browser or app may not be secure" error.
The same Google account, network, and PC work correctly in OpenCode Desktop 2.3.0, where Google reaches the password challenge and login succeeds.
Expected: Google OAuth completes in the in-app browser on 2.4.3. Actual: after entering the email address, Google blocks the sign-in on 2.4.3.
User-Agent 2.3.0 (working): Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) OpenCode/2.3.0 Chrome/152.0.7977.167 Electron/44.9.1 Safari/537.36
User-Agent 2.4.3 (blocked): Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.7977.167 Safari/537.36
The 2.4.3 User-Agent no longer contains the OpenCode or Electron token. DNS, proxy, system time, and TLS access to sentry.io and accounts.google.com are working. No blocking enterprise browser policy was found.
Impact: Google OAuth flows in the OpenCode 2.4.3 in-app browser are blocked, forcing users to authenticate in Chrome/Edge or downgrade to 2.3.0.
Plugins
None
OpenCode version
2.4.3 (affected); 2.3.0 (working)
Steps to reproduce
- Install OpenCode Desktop 2.4.3 on Windows 11.
- Open https://sentry.io/auth/login/ in the OpenCode in-app browser.
- Click "Continue with Google".
- Enter the Google account email address.
- Google shows "Impossible de vous connecter / This browser or app may not be secure".
- Repeat on OpenCode Desktop 2.3.0 with the same PC, network, and Google account.
- In 2.3.0, Google reaches the password challenge and login succeeds.
Screenshot
No response
Operating System
Windows 11 Professionnel 10.0.26300 (26H2), x64
Terminal
OpenCode Desktop in-app browser (Windows)
Thanks for the detailed report and the side-by-side User-Agent comparison. I think this is a duplicate of #65790.
Possible duplicates and related items, most likely first:
- #65790: Google sign-in is rejected with "This browser or app may not be secure" in the desktop app's built-in browser since 2.4.0. It was first reported on macOS, and comments there say the same happens on Windows 10 and Windows 11 (2.4.2), with the same User-Agent without the
OpenCode/Electrontokens. - #64498: an open pull request to hand off passkey sign-in to the system browser. It is related to signing in from the built-in browser but is not a fix for this.
I'm closing this issue now as a duplicate of #65790. Please add your details there, especially that 2.3.0 works on the same PC and account, plus both User-Agent strings, since that helps narrow down the regression. If you think this is a different problem, reply here and the issue will reopen.