Skip to content

[Blazor] Update AuthenticationStateProvider to take advantage of Declarative persistent component state #60718

@javiercn

Description

@javiercn

Currently this is handled by

private readonly Func<AuthenticationState, ValueTask<AuthenticationStateData?>> _serializeCallback;

// Do not change. This must match all versions of the server-side AuthenticationStateSerializer.PersistenceKey.

We want to use the same approach we follow with antiforgery.

[Blazor] Update AuthenticationStateProvider to take advantage of Declarative persistent component state · Issue #60718 · dotnet/aspnetcore