.NET 9 added some new types related to authentication, and we might want to use those too. See https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-9.0?view=aspnetcore-9.0#simplified-authentication-state-serialization-for-blazor-web-apps Probably we don't want to do anything here, because we want to support both .NET 8 and 9 for now, but we should take a look.