MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / localAuthTokenPath

Function localAuthTokenPath

apps/local/src/auth.ts:33–34  ·  view source on GitHub ↗
(dataDir: string = resolveExecutorDataDir())

Source from the content-addressed store, hash-verified

31
32/** Absolute path to the auth-token file for a data directory. */
33export const localAuthTokenPath = (dataDir: string = resolveExecutorDataDir()): string =>
34 join(serverControlDir(dataDir), "auth.json");
35
36const mintToken = (): string => randomBytes(32).toString("base64url");
37

Callers 2

main.tsFile · 0.90
loadOrMintLocalAuthTokenFunction · 0.70

Calls 2

resolveExecutorDataDirFunction · 0.70
serverControlDirFunction · 0.70

Tested by

no test coverage detected