diff --git a/web-dashboard/src/components/common/StatusBar.tsx b/web-dashboard/src/components/common/StatusBar.tsx index 965a1e949..ef66892e3 100644 --- a/web-dashboard/src/components/common/StatusBar.tsx +++ b/web-dashboard/src/components/common/StatusBar.tsx @@ -1,8 +1,13 @@ import { useWebSocket } from '../../hooks/useWebSocket'; -import { isAuthenticated } from '../../lib/auth'; +import { useAuth } from '../../hooks/useAuth'; +import { getTokenClaims } from '../../lib/auth'; + +const EMPTY_TOPICS: string[] = []; export function StatusBar() { - const { connected } = useWebSocket([]); + const { connected } = useWebSocket(EMPTY_TOPICS); + const { authenticated, logout } = useAuth(); + const claims = authenticated ? getTokenClaims() : null; return ( ); }