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

Function read

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

Source from the content-addressed store, hash-verified

11 return {
12 name: `${primary.name}-with-${secondary.name}-fallback`,
13 read(): SecureStorageData {
14 const result = primary.read()
15 if (result !== null && result !== undefined) {
16 return result
17 }
18 return secondary.read() || {}
19 },
20 async readAsync(): Promise<SecureStorageData | null> {
21 const result = await primary.readAsync()
22 if (result !== null && result !== undefined) {

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected