[BUG] authentication_error and login failed
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?
I got authentation error: API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing
token."},"request_id":"req_011CX73snuWmQZcf3xQ3jkpA"} · Please run /login
and login with my subscription plan got error: There was an error logging you in. If the problem persists contact support for assistance.
What Should Happen?
i should be able to login
Error Messages/Logs
Steps to Reproduce
API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing
token."},"request_id":"req_011CX73snuWmQZcf3xQ3jkpA"} · Please run /login
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.7 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗