MCPcopy Index your code
hub / github.com/Dokploy/dokploy / generateToken

Function generateToken

packages/server/src/setup/server-setup.ts:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23import { setupMonitoring } from "./monitoring-setup";
24
25const generateToken = () => {
26 const array = new Uint8Array(64);
27 crypto.getRandomValues(array);
28 return Array.from(array, (byte) => byte.toString(16).padStart(2, "0")).join(
29 "",
30 );
31};
32
33export const slugify = (text: string | undefined) => {
34 if (!text) {

Callers 1

serverSetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected