hasSavedFile static method
Whether a credentials file exists on disk, independent of
fromEnv — load() short-circuits to the env var when it's set,
which can otherwise hide a stale file left over from an earlier
local login.
Implementation
static bool hasSavedFile({String? configDir}) =>
_file(configDir: configDir).existsSync();