We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af16667 commit f62c5abCopy full SHA for f62c5ab
src/WinService/Manager/ApiManager.cs
@@ -161,8 +161,10 @@ private async Task<string> AuthenticateAsync()
161
if (string.IsNullOrEmpty(token))
162
throw new Exception("Token not found");
163
164
- _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(token);
165
- var response = await _httpClient.GetAsync("login/computer");
+ var response = await _httpClient.PostAsJsonAsync("login/computer", new
+ {
166
+ computer_token = token
167
+ });
168
response.EnsureSuccessStatusCode();
169
170
var authToken = await response.Content.ReadAsStringAsync();
0 commit comments