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

Function mintToken

apps/desktop/src/main/local-auth.ts:22–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 join(serverControlDir(dataDir), "auth.json");
21
22const mintToken = (): string => randomBytes(32).toString("base64url");
23
24const readToken = (path: string): string | null => {
25 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: optional on-disk secret may be absent or malformed

Callers 2

loadOrMintLocalAuthTokenFunction · 0.70
rotateLocalAuthTokenFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected