feat: add command to clear cached GitHub authentication token

This commit is contained in:
benexl
2025-12-31 19:54:45 +03:00
parent 92eb1f12b2
commit beacf4fb2d
2 changed files with 22 additions and 1 deletions

View File

@@ -645,6 +645,13 @@ This PR updates `{NORMALIZER_FILE_PATH}` with the following mapping:
AUTH_FILE.unlink()
logger.info("Cleared GitHub authentication cache")
@staticmethod
def clear_cached_auth_static() -> None:
"""Clear cached GitHub authentication (static method for CLI use)."""
if AUTH_FILE.exists():
AUTH_FILE.unlink()
logger.info("Cleared GitHub authentication cache")
def _log_info(self, message: str) -> None:
"""Log info message."""
if self.feedback: