Skip to content

Commit

Permalink
Update AuthorizationHandler.cs
Browse files Browse the repository at this point in the history
Fixes #2352
  • Loading branch information
IEvangelist authored Jan 3, 2025
1 parent 2f5fd33 commit 8b1934b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ No HttpContext available from the IHttpContextAccessor.

var accessToken = await httpContext.GetTokenAsync("access_token");

if (!string.IsNullOrWhitespace(accessToken))
if (!string.IsNullOrWhiteSpace(accessToken))
{
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
}
Expand Down

0 comments on commit 8b1934b

Please sign in to comment.