Bug: Google sign in fails due to invalid redirect URI on Windows
BUG REPORT
OS: Windows
Auth provider: Google
Version: Latest (downloaded today)
Description
When attempting to sign in with Google, T3 Code shows an error saying the current redirect URL does not match an authorized redirect URI.
Error shown:
The current redirect url passed in the sign in or sign up request does not match an authorized redirect URI for this instance.
Review authorized redirect urls for your instance.
The app redirects to:
t3code://app/CLERK-ROUTER/VIRTUAL/sign-up#/settings/general
Screenshot
Attached screenshot shows the full error dialog.
Steps to reproduce
- Open T3 Code
- Click Sign in
- Choose Google authentication
- Observe redirect URI error
Expected behavior
Google authentication should complete successfully and return to the app.
Actual behavior
Authentication fails because the redirect URI is rejected.
Forgot to attach image*
Same error on macOS — third platform affected, and via a different redirect path than the one in the original report.
Environment
- macOS 26.2, arm64 (Apple Silicon)
- T3 Code 0.0.31, installed via
brew install --cask t3-code - Fresh install, first sign-in attempt from Settings
Error
Identical text:
The current redirect url passed in the sign in or sign up request does not match an authorized redirect URI for this instance. Review authorized redirect urls for your instance.
Redirect URI
t3code://app/continue#/settings/genera…
(the tail was cut off in the dialog)
This differs from the t3code://app/CLERK-ROUTER/VIRTUAL/sign-up#/settings/general reported above — so the allowlist gap covers app/continue as well as the virtual sign-up router, not just a single path. Worth checking whether every t3code://app/* callback is registered on the Clerk instance rather than patching them one at a time.
Same root cause as #4815 (Linux AppImage), closed 2026-07-29 — the macOS callback still fails on 0.0.31.
For anyone else landing here: this only blocks T3 Connect. Local providers (Claude Code, Codex, Grok Build) and direct LAN / Tailscale Serve pairing all work fine signed out.
I can reproduce this on Windows using GitHub OAuth, so the problem is not specific to Google.
Environment
- T3 Code stable 0.0.32
- Windows 11 Pro, 64-bit
- Windows version 10.0.26200, build 26200
- Desktop app installed on Windows
- Backend running under Ubuntu on WSL2
Steps to reproduce
- Open Settings → General.
- Choose to create a new T3 Connect account using GitHub.
- Complete the GitHub authorization flow.
- The flow returns to T3 Code without displaying an error.
- T3 Code still shows me as signed out.
- Attempt to sign in again using GitHub.
Actual result
The second attempt displays:
The initial account-creation flow may have created the account, but it did not establish or persist an authenticated desktop session. There was no success confirmation after returning to the app.
Additional diagnostics
I verified that the t3code:// protocol is registered in Windows under:
HKCU\Software\Classes\t3code\shell\open\command
It points to the installed T3 Code executable with "%1" as the URL argument. The callback also reaches the running application, since the error is rendered inside T3 Code.
This therefore appears to be an authorized-redirect allowlist problem rather than Windows failing to dispatch the custom protocol.
This callback differs from the original report’s:
t3code://app/CLERK-ROUTER/VIRTUAL/sign-up#/settings/general
It looks like both /continue and the virtual sign-up route need to be accepted or normalized to one authorized callback.
WSL2 is used for the backend, although this appears to fail in the Windows Electron/Clerk authentication flow before backend linking.
I actually got it to work, after restarting the app a couple of times, then logging in went fine. It might also have been because I created the account on the mobile app - that might have helped as well.
Now this is working for me on Windows too.
Lmk if we wanna reopen this issue.