Build in AuthenticationStateProvider breaks after trimming #56207
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-authentication
feature-blazor-wasm-auth
feature-trimming
Milestone
Is there an existing issue for this?
Describe the bug
Just tried the new API from #52769 and replaced my implementation with it.
After the trimming during dotnet publish I get an exception as soon as the app tries to hand over to WebAssembly:
May relate to #52947 as I noticed that the
AuthenticationStateData
is using aIList<KeyValuePair<string, string>>
but that is only my wild guess.I'm not using the JSON Source Code Generation Serialization
After removing this line on client:
And this line on the server side:
The app worked again as expected.
Expected Behavior
The handover to Web Assembly should work flawless.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
9.0.0-preview.5.24306.7
Anything else?
No response
The text was updated successfully, but these errors were encountered: