MCPcopy Index your code
hub / github.com/codeaashu/claude-code / readAsync

Function readAsync

src/utils/secureStorage/plainTextStorage.ts:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

getStoragePathFunction · 0.85
getFsImplementationFunction · 0.85
jsonParseFunction · 0.85
readFileMethod · 0.80

Tested by

no test coverage detected