We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38d684b commit 9c20ab1Copy full SHA for 9c20ab1
9.0/MauiBlazorWebIdentity/MauiBlazorWeb/MauiBlazorWeb/MauiProgram.cs
@@ -28,7 +28,7 @@ public static MauiApp CreateMauiApp()
28
// This is the core functionality
29
builder.Services.AddAuthorizationCore();
30
// This is our custom provider
31
- builder.Services.AddScoped<MauiAuthenticationStateProvider, MauiAuthenticationStateProvider>();
+ builder.Services.AddScoped<MauiAuthenticationStateProvider>();
32
// Use our custom provider when the app needs an AuthenticationStateProvider
33
builder.Services.AddScoped<AuthenticationStateProvider>(s
34
=> (MauiAuthenticationStateProvider)s.GetRequiredService<MauiAuthenticationStateProvider>());
0 commit comments