From 72521f3fa98b16fa817236eb8a84afa3725b6147 Mon Sep 17 00:00:00 2001 From: guardrex <1622880+guardrex@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:34:52 -0400 Subject: [PATCH] Change service registration --- .../BlazorWasmAuth/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();