MCPcopy
hub / github.com/modstart-lib/aigcpanel / generateToken

Function generateToken

electron/mapi/httpserver/main.ts:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31};
32
33const generateToken = (): string => {
34 return (
35 crypto.randomUUID().replace(/-/g, "") +
36 crypto.randomUUID().replace(/-/g, "")
37 );
38};
39
40const writeCliAuthFile = (port: number, token: string): void => {
41 try {

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected