From 20f9a1c6838e35242993ca219c462d4bd310eb58 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 6 Jan 2026 10:27:24 -0500 Subject: [PATCH] feat(client): migrate MainLayout.razor to IAuthApiClient - Replace IAuthService with IAuthApiClient for logout functionality - Add @using JdeScoping.Core.ApiContracts - LogoutAsync now calls AuthApi.LogoutAsync() and navigates to login regardless of API result --- NEW/src/JdeScoping.Client/Layout/MainLayout.razor | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NEW/src/JdeScoping.Client/Layout/MainLayout.razor b/NEW/src/JdeScoping.Client/Layout/MainLayout.razor index a34de55..c78b451 100644 --- a/NEW/src/JdeScoping.Client/Layout/MainLayout.razor +++ b/NEW/src/JdeScoping.Client/Layout/MainLayout.razor @@ -1,5 +1,6 @@ @inherits LayoutComponentBase -@inject IAuthService AuthService +@using JdeScoping.Core.ApiContracts +@inject IAuthApiClient AuthApi @inject NavigationManager NavigationManager @@ -53,7 +54,8 @@ @code { private async Task LogoutAsync() { - await AuthService.LogoutAsync(); + // Call logout API - navigate to login regardless of result + await AuthApi.LogoutAsync(); NavigationManager.NavigateTo("/login"); }