mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
66 lines
2.6 KiB
Markdown
66 lines
2.6 KiB
Markdown
# codex-jellyfin-secret-store-20260220T101428Z-om4z
|
|
|
|
- alias: `codex-jellyfin-secret-store`
|
|
- mission: `Verify whether Jellyfin token can use same secret-store path as AniList token`
|
|
- status: `completed`
|
|
- last_update_utc: `2026-02-20T10:22:45Z`
|
|
|
|
## Intent
|
|
|
|
- compare AniList token persistence path vs Jellyfin token persistence path
|
|
- answer feasibility + current behavior from code
|
|
|
|
## Planned Files
|
|
|
|
- `src/main/runtime/anilist-token-refresh.ts`
|
|
- `src/main/runtime/*anilist*`
|
|
- `src/core/services/jellyfin.ts`
|
|
- `src/main/runtime/*jellyfin*`
|
|
- `src/config/*`
|
|
- docs refs if needed
|
|
|
|
## Assumptions
|
|
|
|
- user asking architecture/feasibility question; likely no code change requested yet
|
|
|
|
## Findings
|
|
|
|
- AniList token store present: `src/core/services/anilist/anilist-token-store.ts` (`safeStorage` encrypt/decrypt + persisted file)
|
|
- AniList runtime wiring present: `src/main.ts` creates `anilistTokenStore`; refresh/setup paths use `saveToken/loadToken`
|
|
- Jellyfin auth currently writes token directly into config via `patchRawConfig({ jellyfin: { accessToken } })`
|
|
- Docs confirm current behavior: Jellyfin token persisted in config (`docs/jellyfin-integration.md`)
|
|
|
|
## Outcome
|
|
|
|
- no code changes; answered feasibility/current state from repo
|
|
- implemented requested change: Jellyfin token now persisted in local encrypted token store with config override fallback
|
|
|
|
## Files Touched
|
|
|
|
- `src/core/services/jellyfin-token-store.ts`
|
|
- `src/main.ts`
|
|
- `src/main/runtime/jellyfin-client-info.ts`
|
|
- `src/main/runtime/jellyfin-client-info.test.ts`
|
|
- `src/main/runtime/jellyfin-client-info-main-deps.ts`
|
|
- `src/main/runtime/jellyfin-client-info-main-deps.test.ts`
|
|
- `src/main/runtime/jellyfin-cli-auth.ts`
|
|
- `src/main/runtime/jellyfin-cli-auth.test.ts`
|
|
- `src/main/runtime/jellyfin-cli-main-deps.ts`
|
|
- `src/main/runtime/jellyfin-cli-main-deps.test.ts`
|
|
- `src/main/runtime/jellyfin-setup-window.ts`
|
|
- `src/main/runtime/jellyfin-setup-window.test.ts`
|
|
- `src/main/runtime/jellyfin-setup-window-main-deps.ts`
|
|
- `src/main/runtime/jellyfin-setup-window-main-deps.test.ts`
|
|
- `docs/jellyfin-integration.md`
|
|
- `docs/configuration.md`
|
|
- `docs/public/config.example.jsonc`
|
|
- `src/config/definitions.ts`
|
|
- `backlog/tasks/task-92 - Store-Jellyfin-token-in-encrypted-local-token-store-like-AniList.md`
|
|
|
|
## Verification
|
|
|
|
- `bun run build`
|
|
- `node --test dist/main/runtime/jellyfin-client-info.test.js dist/main/runtime/jellyfin-cli-auth.test.js dist/main/runtime/jellyfin-setup-window.test.js dist/main/runtime/jellyfin-client-info-main-deps.test.js dist/main/runtime/jellyfin-cli-main-deps.test.js dist/main/runtime/jellyfin-setup-window-main-deps.test.js`
|
|
- `bun run test:fast`
|
|
- `bun run docs:build`
|