Skip to content

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

Description

@kazemSafari

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions