diff --git a/8.0/BlazorWebAssemblyStandaloneWithIdentity/BlazorWasmAuth/Program.cs b/8.0/BlazorWebAssemblyStandaloneWithIdentity/BlazorWasmAuth/Program.cs index f7c259479..519229ce3 100644 --- a/8.0/BlazorWebAssemblyStandaloneWithIdentity/BlazorWasmAuth/Program.cs +++ b/8.0/BlazorWebAssemblyStandaloneWithIdentity/BlazorWasmAuth/Program.cs @@ -10,7 +10,7 @@ builder.RootComponents.Add("head::after"); // register the cookie handler -builder.Services.AddScoped(); +builder.Services.AddTransient(); // set up authorization builder.Services.AddAuthorizationCore();