prefetchGcpCredentialsIfSafe function

void prefetchGcpCredentialsIfSafe()

Prefetch GCP credentials if safe.

Implementation

void prefetchGcpCredentialsIfSafe() {
  final gcpAuthRefresh = getConfiguredGcpAuthRefresh();
  if (gcpAuthRefresh == null) return;
  if (isGcpAuthRefreshFromProjectSettings()) return;
  refreshGcpCredentialsIfNeeded();
}