diff --git a/oidc_cli/oidc_impl/cache/cache.go b/oidc_cli/oidc_impl/cache/cache.go index d3e2f41b..22300236 100644 --- a/oidc_cli/oidc_impl/cache/cache.go +++ b/oidc_cli/oidc_impl/cache/cache.go @@ -126,7 +126,8 @@ func (c *Cache) refresh(ctx context.Context) (*client.Token, error) { } logrus.Info("...got cachedToken2 ", cachedToken2) - return token, nil + logrus.Info("...returning cached token") + return cachedToken2, nil } // reads token from storage, potentially returning a nil/expired token