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

Function generateRandomApiKey

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

Source from the content-addressed store, hash-verified

60 * Returns a 64-character hex string (256-bit).
61 */
62export function generateRandomApiKey() {
63 return randomBytes(32).toString("hex");
64}
65
66// Where the auto-generated API key is persisted so it stays stable across
67// `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