diff --git a/docs/authentication/snippets/AspireApp/AspireApp.Web/AuthorizationHandler.cs b/docs/authentication/snippets/AspireApp/AspireApp.Web/AuthorizationHandler.cs index 5b993a63db..d4d8ff8502 100644 --- a/docs/authentication/snippets/AspireApp/AspireApp.Web/AuthorizationHandler.cs +++ b/docs/authentication/snippets/AspireApp/AspireApp.Web/AuthorizationHandler.cs @@ -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); }