[BUG] Can't authenticate in the CLI because the browser automatically redirects
Resolved 💬 4 comments Opened Aug 7, 2025 by kosmos Closed Aug 15, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.70 (Claude Code)
- Operating System: MacOS Version 15.5 (24F74)
- Terminal: Ghosty
Bug Description
I can't authenticate in the CLI because the browser automatically redirects from the authentication page to the chat page. I don't have time to click the "Authorize" button.
Steps to Reproduce
- Copy login link from CLI.
- Past login link to browser.
Expected Behavior
I expect to be able to click the "Authorize" button on the authentication form.
Actual Behavior
Instead, I am immediately redirected to the chat page as soon as the form is displayed, without having a chance to click the button.
Additional Context
In the CLI, I see the following error:
OAuth error: Invalid code. Please make sure the full code was copiedThis issue has 4 comments on GitHub. Read the full discussion on GitHub ↗