mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-16 14:49:09 +02:00
The NoAccessPage button previously only called nav.push('/login'),
leaving the session cookie, React Query cache, and local auth state
intact. AuthInitializer then silently re-authenticates and bounces the
user right back to the workspace URL — the button appeared broken.
Extract the logout flow (clear per-workspace storage, clear cookies,
clear multica_tabs, queryClient.clear(), authStore.logout(), navigate
to /login) into a shared useLogout() hook in packages/views/auth/.
AppSidebar and NoAccessPage both use it now; any future logout entry
point can too.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 lines
105 B
TypeScript
3 lines
105 B
TypeScript
export { LoginPage, validateCliCallback } from "./login-page";
|
|
export { useLogout } from "./use-logout";
|