mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
2.6 KiB
2.6 KiB
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.tssrc/main/runtime/*anilist*src/core/services/jellyfin.tssrc/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(safeStorageencrypt/decrypt + persisted file) - AniList runtime wiring present:
src/main.tscreatesanilistTokenStore; refresh/setup paths usesaveToken/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.tssrc/main.tssrc/main/runtime/jellyfin-client-info.tssrc/main/runtime/jellyfin-client-info.test.tssrc/main/runtime/jellyfin-client-info-main-deps.tssrc/main/runtime/jellyfin-client-info-main-deps.test.tssrc/main/runtime/jellyfin-cli-auth.tssrc/main/runtime/jellyfin-cli-auth.test.tssrc/main/runtime/jellyfin-cli-main-deps.tssrc/main/runtime/jellyfin-cli-main-deps.test.tssrc/main/runtime/jellyfin-setup-window.tssrc/main/runtime/jellyfin-setup-window.test.tssrc/main/runtime/jellyfin-setup-window-main-deps.tssrc/main/runtime/jellyfin-setup-window-main-deps.test.tsdocs/jellyfin-integration.mddocs/configuration.mddocs/public/config.example.jsoncsrc/config/definitions.tsbacklog/tasks/task-92 - Store-Jellyfin-token-in-encrypted-local-token-store-like-AniList.md
Verification
bun run buildnode --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.jsbun run test:fastbun run docs:build