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

Function mintToken

apps/local/src/auth.ts:36–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 join(serverControlDir(dataDir), "auth.json");
35
36const mintToken = (): string => randomBytes(32).toString("base64url");
37
38const readToken = (path: string): string | null => {
39 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: reading an optional on-disk secret file that may be absent or malformed

Callers 2

loadOrMintLocalAuthTokenFunction · 0.70
rotateLocalAuthTokenFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected