diff --git a/frontend/js/auth.js b/frontend/js/auth.js index ba08c06..4ad80b5 100644 --- a/frontend/js/auth.js +++ b/frontend/js/auth.js @@ -201,6 +201,9 @@ const AuthManager = { const logoutBtn = document.getElementById("logout-btn"); if (logoutBtn) logoutBtn.addEventListener("click", () => AuthManager.logout()); + // Also wire up the header dropdown "Sign out" (onclick="handleLogout()") + window.handleLogout = () => AuthManager.logout(); + const adminRow = document.getElementById("admin-menu-row"); if (adminRow) { if (user.role === "admin") {