Claude Code OAuth loop — Max subscriber cannot authenticate on Windows 11 with multiple Google accounts

Resolved 💬 5 comments Opened Mar 5, 2026 by kazemSafari Closed Apr 3, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code cannot authenticate my Claude Max subscription. After completing the OAuth login flow, the browser always redirects to an upgrade/onboarding page saying "Claude Max or Pro is required to connect to Claude Code" — even though I have an active Max subscription on my personal Gmail account.

What Should Happen?

After logging in with my personal Gmail account (which has an active Claude Max subscription), Claude Code should recognize the subscription and authenticate successfully without redirecting to an upgrade page.

Error Messages/Logs

Browser shows: "Claude Max or Pro is required to connect to Claude Code. Sign up for a Max or Pro subscription to connect your account, or use your API key."

Steps to Reproduce

  1. Run "claude login" in PowerShell on Windows 11
  2. Select option 1 (Claude account with Pro/Max subscription)
  3. Copy the OAuth URL from the terminal
  4. Paste the URL into a private/incognito browser window
  5. Log in with personal Gmail account that has active Claude Max subscription
  6. Browser redirects to onboarding/upgrade page instead of authenticating
  7. No way to proceed — loop repeats every time

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.69

Platform

Other

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

  • This is a work computer with a separate work Google Workspace account also present
  • claude.ai works perfectly fine when logged into my personal Gmail in the browser
  • I have deleted .claude folder and .claude.json under C:\Users\mosafari multiple times
  • No ANTHROPIC_API_KEY environment variable is set
  • Tried claude logout and claude login many times — same result every time
  • Tried pasting OAuth URL into incognito window with only personal Gmail active — still redirects to upgrade page
  • Claude Code is fully up to date (2.1.69)
  • The OAuth flow appears to be redirecting to /onboarding instead of /login, likely confused by the presence of multiple Google accounts on this machine

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗