diff --git a/dashboard/src/components/AppShell.tsx b/dashboard/src/components/AppShell.tsx index 9e1271e..ecb76a7 100644 --- a/dashboard/src/components/AppShell.tsx +++ b/dashboard/src/components/AppShell.tsx @@ -32,7 +32,7 @@ export function AppShell() { const [theme, setTheme] = useState<'light' | 'dark'>('light'); const [remoteMode, setRemoteMode] = useState(true); const [portalServicesConfig, setPortalServicesConfig] = useState(portalServices); - const [authRequired, setAuthRequired] = useState(false); + const [authRequired, setAuthRequired] = useState(true); const [authStatusLoaded, setAuthStatusLoaded] = useState(false); const [authToken, setAuthToken] = useState(''); const [tokenInput, setTokenInput] = useState(''); @@ -209,14 +209,10 @@ export function AppShell() { summary={summary} metrics={metrics} onToggleSidebar={() => setSidebarCollapsed((value) => !value)} - onLogout={ - authRequired - ? () => { - window.localStorage.removeItem('xworkspace-bridge-token'); - window.location.reload(); - } - : undefined - } + onLogout={() => { + window.localStorage.removeItem('xworkspace-bridge-token'); + window.location.reload(); + }} />