In a windows form application in c# that use google Drive API, I'm trying to sign out the user currently connected. I tried some solutions but no one is working. The code is executed but the user still connected when I'm looking in my browser.
Solution 1 (WebClient):
WebClient g = new WebClient();
g.DownloadString("https://www.google.com/accounts/Logout");
Solution 2:
Process.Start("https://accounts.google.com/Logout") //Working but open a browser
Solution 3 (WebRequest):
WebRequest request = WebRequest.Create("https://accounts.google.com/Logout");
request.Method = "GET";
request.GetResponse();
Thanks!