public async ValueTask LogoutAsync() { await _localStorageService.ClearUserInfo(); if (_authenticationStateProvider is LocalStorageAuthenticationStateProvider authProvider) { authProvider.NotifyAuthStateChanged(); Console.WriteLine("NotifyAuthStateChanged was called"); } }