diff --git a/aspnetcore/blazor/security/index.md b/aspnetcore/blazor/security/index.md index 635b7cee18..d090b6cd70 100644 --- a/aspnetcore/blazor/security/index.md +++ b/aspnetcore/blazor/security/index.md @@ -118,6 +118,8 @@ For more information on dependency injection (DI) and services, see and override `GetAuthenticationStateAsync`: ```csharp @@ -141,17 +143,7 @@ public class CustomAuthStateProvider : AuthenticationStateProvider } ``` -In a Blazor WebAssembly app, the `CustomAuthStateProvider` service is registered in `Main` of `Program.cs`: - -```csharp -using Microsoft.AspNetCore.Components.Authorization; - -... - -builder.Services.AddScoped(); -``` - -In a Blazor Server app, the `CustomAuthStateProvider` service is registered in `Program.cs`: +The `CustomAuthStateProvider` service is registered in `Program.cs`: ```csharp using Microsoft.AspNetCore.Components.Authorization;