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

Function writeTokenFile

src/utils/authSessionIngress.test.ts:59–63  ·  view source on GitHub ↗
(name: string, token: string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected