mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-13 21:30:46 +02:00
AuthInitializer only checked for multica_token in localStorage. In cookie auth mode (introduced by the HttpOnly cookie migration), there is no localStorage token — so AuthInitializer immediately set the user to null and triggered a logout redirect on every page load/reload. Add a cookieAuth code path that calls api.getMe() using the HttpOnly cookie sent automatically by the browser, matching the auth store's initialize() logic. Fixes MUL-705, fixes #864