mirror of
https://github.com/CodeZeno/Claude-Code-Usage-Monitor.git
synced 2026-06-20 10:19:27 +08:00
- Removed custom OAuth token refresh logic that was inadvertently invalidating Claude Code's refresh token via token rotation - Removed hardcoded OAuth constants (token URL, client ID, scopes) no longer needed - Removed in-memory token cache (CachedTokens, TOKEN_CACHE) no longer needed - Delegate token refresh to the Claude CLI (claude auth status) so it manages its own credentials and writes updated tokens to disk - Re-read credentials file after CLI refresh to pick up the fresh access token - Simplified Credentials struct by removing unused refresh_token field