Merge pull request #5970 from uncled1023/master

Fixed invalid request functions for Teknik
This commit is contained in:
Jaex 2021-12-05 13:29:31 +03:00 committed by GitHub
commit 866232e6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ public bool RefreshAccessToken()
args.Add("client_secret", AuthInfo.Client_Secret);
args.Add("grant_type", "refresh_token");
string response = SendRequestMultiPart(AuthUrl + "/connect/token", args);
string response = SendRequestURLEncoded(HttpMethod.POST, AuthUrl + "/connect/token", args);
if (!string.IsNullOrEmpty(response))
{
@ -145,7 +145,7 @@ public bool GetAccessToken(string code)
args.Add("redirect_uri", Links.URL_CALLBACK);
args.Add("code", code);
string response = SendRequestMultiPart(AuthUrl + "/connect/token", args);
string response = SendRequestURLEncoded(HttpMethod.POST, AuthUrl + "/connect/token", args);
if (!string.IsNullOrEmpty(response))
{