MCPcopy Create free account
hub / github.com/Noumena-Network/code / writeCredentials

Function writeCredentials

src/bridge/trustedDevice.test.ts:31–35  ·  view source on GitHub ↗
(data: Record<string, unknown>)

Source from the content-addressed store, hash-verified

29}
30
31async function writeCredentials(data: Record<string, unknown>): Promise<void> {
32 await writeFile(credentialsPath(), JSON.stringify(data), 'utf8')
33 clearOAuthTokenCache()
34 clearTrustedDeviceTokenCache()
35}
36
37async function readCredentials(): Promise<Record<string, unknown>> {
38 return JSON.parse(await readFile(credentialsPath(), 'utf8')) as Record<

Callers 1

Calls 3

credentialsPathFunction · 0.85
clearOAuthTokenCacheFunction · 0.85

Tested by

no test coverage detected