@page "/logout"
@inherits LocalizableComponentBase
@Localizer["Logout"]
@Localizer["Logging out..."]
@code {
[CascadingParameter] CascadingState CascadingState { get; set; }
//[Inject] TokenAuthStateProvider AuthStateProvider { get; set; }
[Inject] SignOutSessionStateManager SignOutSessionStateManager { get; set; }
[Inject] NavigationManager Navigation { get; set; }
protected override async Task OnInitializedAsync()
{
//await AuthStateProvider.LogoutAsync(true);
await SignOutSessionStateManager.SetSignOutState();
Navigation.NavigateTo("authenticatio/logout");
}
}