[BUG] Unable to access Claude Code after successful OAuth login with Google account
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?
After completing the OAuth login flow via browser using my Google-authenticated Claude account, I receive the error:
Unable to access Claude Code There was an issue accessing Claude Code. Try signing out and back in, or contact support if the problem persists.
Environment:
Operating System: Linux (Ubuntu 24.04, some colleagues on MacOS have the same issue)
Claude Code version: 2.1.12 (Claude Code)
Account type: Claude Team
Authentication method: Google OAuth
What Should Happen?
Should successfully authenticate and allow me to use Claude Code with my subscription.
Actual behavior:
Authentication appears to succeed in browser but fails in CLI with the error above.
Error Messages/Logs
Unable to access Claude Code
There was an issue accessing Claude Code. Try signing out and back in, or contact support if the problem persists.
Steps to Reproduce
Run claude in terminal
Select login with Claude app (subscription account)
Browser opens and authentication completes successfully
Browser shows success message
Return to terminal - error message appears instead of successful login
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.12
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
<img width="968" height="447" alt="Image" src="https://github.com/user-attachments/assets/4773a4b6-b2fb-4a0d-8c5a-9fac2f13b1a9" />
<img width="273" height="400" alt="Image" src="https://github.com/user-attachments/assets/a9ca3f48-f7a0-4821-827a-903bb8bf514c" />
<img width="958" height="338" alt="Image" src="https://github.com/user-attachments/assets/4a2b51cd-9ba5-4bbb-8e87-fb101eef3956" />
This issue has 15 comments on GitHub. Read the full discussion on GitHub ↗