400 grant_type malformed on refresh

As a general advice, HttpClient instead of WebRequest