diff --git a/aspnetcore/blazor/security/server/index.md b/aspnetcore/blazor/security/server/index.md index 4c1a584b23..d0ae62bed1 100644 --- a/aspnetcore/blazor/security/server/index.md +++ b/aspnetcore/blazor/security/server/index.md @@ -340,7 +340,7 @@ public class AuthenticationService In `Program.cs`, register the `AuthenticationService` in the dependency injection container: ```csharp -builder.Services.AddSingleton(); +builder.Services.AddScoped(); ``` :::moniker-end @@ -350,7 +350,7 @@ builder.Services.AddSingleton(); In `Startup.ConfigureServices` of `Startup.cs`, register the `AuthenticationService` in the dependency injection container: ```csharp -services.AddSingleton(); +services.AddScoped(); ``` :::moniker-end