hasSavedFile static method

bool hasSavedFile({
  1. String? configDir,
})

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();