()
| 31 | } |
| 32 | }, |
| 33 | async readAsync(): Promise<SecureStorageData | null> { |
| 34 | const { storagePath } = getStoragePath() |
| 35 | try { |
| 36 | const data = await getFsImplementation().readFile(storagePath, { |
| 37 | encoding: 'utf8', |
| 38 | }) |
| 39 | return jsonParse(data) |
| 40 | } catch { |
| 41 | return null |
| 42 | } |
| 43 | }, |
| 44 | update(data: SecureStorageData): { success: boolean; warning?: string } { |
| 45 | // sync IO: called from sync context (SecureStorage interface) |
| 46 | try { |
nothing calls this directly
no test coverage detected