added token refresh after error