better solution for app refresh on change of cloud credential