No description
  • Svelte 51.7%
  • Rust 41.3%
  • TypeScript 5.8%
  • CSS 0.8%
  • HTML 0.3%
Find a file
Micke Nordin 13030f7387
Move auth tokens to the OS credential store
Session cookies and OIDC access / refresh / device-secret tokens were
being written as plaintext JSON to the tauri-plugin-store config file.
Any other process with read access to the user's data directory could
lift them and impersonate the account.

Route all four secrets through the OS keyring (Secret Service on Linux,
Keychain on macOS, Credential Manager on Windows) via the keyring crate.
Only non-secret metadata (server_url, username, auth_mode, expires_at,
avatar_url) stays in the plain store.

Existing installs get a one-shot migration during check_session: any
legacy plaintext values found in the store are copied into the keyring
and deleted from disk. Keyring write failures are logged but don't fail
login — the user stays signed in for the current run and re-auths next
launch rather than silently falling back to plaintext persistence.
2026-04-19 14:05:34 +02:00
src Update room list incrementally on WebSocket events 2026-04-19 13:00:19 +02:00
src-tauri Move auth tokens to the OS credential store 2026-04-19 14:05:34 +02:00
.gitignore Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00
CLAUDE.md Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00
index.html Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00
LICENSE Initial commit 2026-02-15 13:14:22 +01:00
package-lock.json Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00
package.json Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00
README.md Initial commit 2026-02-15 13:14:22 +01:00
svelte.config.js Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00
tsconfig.json Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00
vite.config.ts Add Tauri + Svelte frontend with chat UI, theme settings, and WebSocket support 2026-02-15 16:44:53 +01:00

amity-client