Skip to content

Commit

Permalink
[fix] change how telemetry api handles auth header
Browse files Browse the repository at this point in the history
  • Loading branch information
Asfiroth committed Oct 21, 2024
1 parent 9af53c1 commit 97aff54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dimo.Client/Services/Telemetry/TelemetryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public async Task<T> ExecuteQueryAsync<T>(
OperationName = queryName,
Variables = variables
};
_client.HttpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {authToken}");

_client.HttpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", authToken);

var response = await _client.SendQueryAsync<T>(graphQlRequest, cancellationToken);

Expand Down

0 comments on commit 97aff54

Please sign in to comment.