Add support for retrying basic auth if bearer fails Similar to https://github.com/helm/helm/pull/31212