MCPcopy Create free account
hub / github.com/freecodexyz/free-code / readAsync

Function readAsync

src/utils/secureStorage/fallbackStorage.ts:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 return secondary.read() || {}
19 },
20 async readAsync(): Promise<SecureStorageData | null> {
21 const result = await primary.readAsync()
22 if (result !== null && result !== undefined) {
23 return result
24 }
25 return (await secondary.readAsync()) || {}
26 },
27 update(data: SecureStorageData): { success: boolean; warning?: string } {
28 // Capture state before update
29 const primaryDataBefore = primary.read()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected