Description
The sample code at very end has a snippet
builder.Services.AddScoped<MauiAuthenticationStateProvider,
MauiAuthenticationStateProvider>();
It should register mapping of AuthenticationStateProvider to implementation type MauiAuthenticationStateProvider
builder.Services.AddScoped<AuthenticationStateProvider,
MauiAuthenticationStateProvider>();
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/security/maui-blazor-web-identity?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md
Document ID
b3f22688-7285-5322-cc3e-52081204558b
Platform Id
9e599b2d-4662-785d-6254-49a75cbe57d8
Article author
@guardrex
Metadata
- ID: b3f22688-7285-5322-cc3e-52081204558b
- PlatformId: 9e599b2d-4662-785d-6254-49a75cbe57d8
- Service: aspnet-core
- Sub-service: blazor-hybrid
Related Issues
Description
The sample code at very end has a snippet
It should register mapping of
AuthenticationStateProviderto implementation typeMauiAuthenticationStateProviderPage URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/security/maui-blazor-web-identity?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md
Document ID
b3f22688-7285-5322-cc3e-52081204558b
Platform Id
9e599b2d-4662-785d-6254-49a75cbe57d8
Article author
@guardrex
Metadata
Related Issues