General
Fixed cachedir not being set properly in rare cases
Authentication
Fixed
delete persistent auth
function, refresh token was not being handled properly