diff --git a/src/otf_api/auth/auth.py b/src/otf_api/auth/auth.py index 11f29b0..b776d96 100644 --- a/src/otf_api/auth/auth.py +++ b/src/otf_api/auth/auth.py @@ -41,7 +41,7 @@ def has_cached_credentials(config: OtfAuthConfig | None = None) -> bool: bool: True if there are cached credentials, False otherwise. """ config = config or OtfAuthConfig() - return config.token_cache.get_cached_data() is not None + return bool(config.token_cache.get_cached_data()) @staticmethod def from_cache(config: OtfAuthConfig | None = None) -> "OtfTokenAuth":