fixes refresh secret storing