Files
ChatApp/apps/desktop/src/lib
byGalax 20216b37c6 refactor(desktop): AuthContext exposes userKeyState instead of device record
Replaces the per-device DeviceRecord lookup with a per-user discriminated
union (loading | needs-setup | needs-unlock | unlocked). Heartbeat block
deleted (telemetry no longer device-bound); webPush keyed by install-id.
2026-05-15 22:52:41 +02:00
..
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00
2026-04-18 23:11:35 +02:00

apps/desktop/src/lib

Desktop-local helpers that depend on Tauri plugins.

Expected contents:

  • stronghold.ts — wraps tauri-plugin-stronghold for secret storage; adapter for @chat-app/shared/auth.
  • sqlite.ts — wraps tauri-plugin-sql (SQLite), exposes migration runner.
  • notifications.ts — wraps tauri-plugin-notification.
  • sodium.ts — binds libsodium-wrappers (WASM) to the crypto adapter interface.
  • store.ts — Zustand store setup (auth state, chat state slices).