Skip to content

Commit f62c5ab

Browse files
committed
fix: handle computer token in body
1 parent af16667 commit f62c5ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/WinService/Manager/ApiManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,10 @@ private async Task<string> AuthenticateAsync()
161161
if (string.IsNullOrEmpty(token))
162162
throw new Exception("Token not found");
163163

164-
_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(token);
165-
var response = await _httpClient.GetAsync("login/computer");
164+
var response = await _httpClient.PostAsJsonAsync("login/computer", new
165+
{
166+
computer_token = token
167+
});
166168
response.EnsureSuccessStatusCode();
167169

168170
var authToken = await response.Content.ReadAsStringAsync();

0 commit comments

Comments
 (0)