Skip to content

Commit

Permalink
fix access token fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Feb 6, 2024
1 parent beadaa7 commit 58801d6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public async Task<IActionResult> HandleAuthorizationCallbackAsync([FromQuery(Nam
["client_secret"] = githubOptions.ClientSecret,
["code"] = code,
});
requestMessage.Headers.Accept.Add(new("application/json"));
requestMessage.Headers.Authorization = new("token", code);

using (HttpResponseMessage responseMessage = await httpClient.SendAsync(requestMessage))
{
Expand Down

0 comments on commit 58801d6

Please sign in to comment.