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

Function writeTokenFile

src/utils/sessionIngressAuth.test.ts:56–60  ·  view source on GitHub ↗
(name: string, token: string)

Source from the content-addressed store, hash-verified

54}
55
56function writeTokenFile(name: string, token: string): string {
57 const path = join(tempDir, name)
58 writeFileSync(path, token, 'utf8')
59 return path
60}
61
62beforeAll(async () => {
63 tempDir = await mkdtemp(join(tmpdir(), 'ncode-session-ingress-auth-test-'))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected