()
| 158 | } |
| 159 | |
| 160 | async function readSecretStore() { |
| 161 | try { |
| 162 | await ensureUserDataDir() |
| 163 | const raw = await readFile(secretStorePath(), 'utf8') |
| 164 | return JSON.parse(raw) |
| 165 | } catch { |
| 166 | return {} |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | async function writeSecretStore(store) { |
| 171 | await ensureUserDataDir() |
no test coverage detected