[BUG] Claude code cli OAuth token revoked after login
Resolved 💬 3 comments Opened Feb 28, 2026 by sunhaozhe2k Closed Feb 28, 2026
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?
yesterday, I reinstalled claude code and cleaned up the authentication cache completely
however, right after /login in claude code successfully, every input shows OAuth revoked error, and 'Usage' of /status shows OAuth revoked error too
What Should Happen?
after login, claude code should work normally
Error Messages/Logs
❯ /login
⎿ Login successful
❯ Hi
⎿ OAuth token revoked · Please run /login
❯ /status
───────────────────────────────────────────────────────────────────────────────
Settings: Status Config Usage (←/→ or tab to cycle)
Error: Failed to load usage data: {"type":"error","error":{"type":"permission_error","message":"OAuth token has been
revoked. Please obtain a new
token.","details":{"error_visibility":"user_facing"}},"request_id":"req_011CYZo6qUyzUKhkdmmGAgpA"}
r to retry · Esc to cancel
Steps to Reproduce
- completely uninstall claude code
- delete all cache of claude code
- install claude code
- login in claude code
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.62
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
<img width="1095" height="336" alt="Image" src="https://github.com/user-attachments/assets/842c90ac-dc2e-4d75-91ac-142482661afb" />
request id req_011CYZkLe6AypdCBexwiQ3aV
time: about 21:20, Feb 27, 2026
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗