MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / generateRandomApiKey

Function generateRandomApiKey

scripts/dev-safe.mjs:72–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 * Returns a 64-character hex string (256-bit).
71 */
72export function generateRandomApiKey() {
73 return randomBytes(32).toString("hex");
74}
75
76// Where the auto-generated API key is persisted so it stays stable across
77// `npm run dev` restarts. Keeping the key stable means the value baked into

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected