MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / verifyAPIKey

Function verifyAPIKey

src/index.ts:53–56  ·  view source on GitHub ↗
(kv: KVNamespace, apiKey: string)

Source from the content-addressed store, hash-verified

51}
52
53async function verifyAPIKey(kv: KVNamespace, apiKey: string): Promise<boolean> {
54 const val = await kv.get(`ak:${apiKey}`);
55 return val !== null;
56}
57
58async function getTokenPool(kv: KVNamespace): Promise<{ id: string; token: string }[]> {
59 const list = await kv.list({ prefix: "rt:" });

Callers 1

authenticateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected