@page "/admin/logout"
@using TaxBaik.Web.Services
@inject CustomAuthenticationStateProvider AuthStateProvider
@inject NavigationManager NavigationManager

<PageTitle>로그아웃</PageTitle>

@code {
    protected override async Task OnInitializedAsync()
    {
        // 사용자 로그아웃
        await AuthStateProvider.LogoutAsync();

        // 로그인 페이지로 리다이렉트
        NavigationManager.NavigateTo("/taxbaik/admin/login", forceLoad: true);
    }
}
