feat(client): add cookie-backed authentication UI

- Add session-aware login, logout and protected navigation.
- Send cookie credentials for API and run-event requests with localized UI stories.
This commit is contained in:
agent committed 2026-11-05 04:18:11 -05:00
1 parent 9e4b692444
commit 92141a25fb
26 files changed
+1191 -12

No files matched your search

+13 -2
View File
@@ -6,15 +6,26 @@ import './i18n';
import './ui/tokens.css';
import App from './App';
import { ToastProvider } from './ui';
import { AuthProvider } from './auth/AuthContext';
import { ApiError } from './api/client';
const queryClient = new QueryClient();
const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: (failureCount, error) =>
error instanceof ApiError && error.status === 401 ? false : failureCount < 3,
},
},
});
createRoot(document.getElementById('root')!).render(
<StrictMode>
<QueryClientProvider client={queryClient}>
<ToastProvider>
<BrowserRouter>
<App />
<AuthProvider>
<App />
</AuthProvider>
</BrowserRouter>
</ToastProvider>
</QueryClientProvider>