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

Function rotateLocalAuthToken

apps/desktop/src/main/local-auth.ts:47–48  ·  view source on GitHub ↗
(dataDir: string = resolveExecutorDataDir())

Source from the content-addressed store, hash-verified

45 readToken(localAuthTokenPath(dataDir)) ?? writeToken(dataDir, mintToken());
46
47export const rotateLocalAuthToken = (dataDir: string = resolveExecutorDataDir()): string =>
48 writeToken(dataDir, mintToken());

Callers 1

rotateServerTokenFunction · 0.90

Calls 3

resolveExecutorDataDirFunction · 0.70
writeTokenFunction · 0.70
mintTokenFunction · 0.70

Tested by

no test coverage detected