MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / generateApiKey

Function generateApiKey

lib/apiKey.ts:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { v4 as uuidv4 } from "uuid";
2
3export function generateApiKey(): string {
4 /**
5 * Generate a version 4 UUID which can be used as an API key and appends 'sfk'.
6 * Version 4 UUIDs are sufficiently random for our purposes.
7 * sfk stands for SuperFlows Key **/
8 //
9 return "sfk-" + uuidv4();
10}

Callers 3

DashboardFunction · 0.90
DashboardFunction · 0.90
handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected