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

Function credentialsPath

src/bridge/trustedDevice.test.ts:27–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const TRUSTED_DEVICE_GATE = 'ncode_sessions_elevated_auth_enforcement'
26
27function credentialsPath(): string {
28 return join(configDir, '.credentials.json')
29}
30
31async function writeCredentials(data: Record<string, unknown>): Promise<void> {
32 await writeFile(credentialsPath(), JSON.stringify(data), 'utf8')

Callers 2

writeCredentialsFunction · 0.85
readCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected