[Bug] OAuth token refresh fails in Claude Code GUI on macOS after 401 error
Bug Description
When the OAuth token expires in Claude App on macOS (specifically in the Claude Code tab), it becomes impossible to refresh it using the graphical user interface (GUI). The instruction provided after receiving a 401 HTTP error code is to use the /login command, but it appears that the GUI doesn’t support executing commands. To bypass this limitation, I opened the Command Line Interface (CLI) via the Claude Code button, which opened an internal HTML canvas within the Claude Code macOS app. In this context, I executed the /login command, which successfully authenticated me, but unfortunately, the refreshed token didn’t automatically carry back to the GUI. In essence, once the token is frozen with a 401 HTTP error, it becomes impossible to recover it using the GUI.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.15
- Feedback ID: 8a07b64b-c9ab-44fa-bc46-4f427c48c01f
Errors
Note: Content was truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗