mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-23 10:08:38 +02:00
Critical: - Create webStorage adapter (SSR-safe localStorage wrapper) - Replace bare localStorage in platform/auth.ts and platform/workspace.ts - Add all missing dependencies to packages/views/package.json (sonner, @dnd-kit/*, @tiptap/*, recharts, lowlight, etc.) Important: - Delete duplicate apps/web/components/common/actor-avatar.tsx (identical to packages/views/common/actor-avatar.tsx) - Update components.json aliases to point to @multica/ui/* - Remove empty apps/web/shared/ directory Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
412 B
TypeScript
17 lines
412 B
TypeScript
import { createAuthStore, registerAuthStore } from "@multica/core/auth";
|
|
import { api } from "./api";
|
|
import { webStorage } from "./storage";
|
|
import {
|
|
setLoggedInCookie,
|
|
clearLoggedInCookie,
|
|
} from "../features/auth/auth-cookie";
|
|
|
|
export const useAuthStore = createAuthStore({
|
|
api,
|
|
storage: webStorage,
|
|
onLogin: setLoggedInCookie,
|
|
onLogout: clearLoggedInCookie,
|
|
});
|
|
|
|
registerAuthStore(useAuthStore);
|