MCPcopy Create free account
hub / github.com/benjitaylor/agentation / getApiKeyByHash

Function getApiKeyByHash

mcp/src/server/sqlite.ts:788–791  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

786 },
787
788 getApiKeyByHash(hash: string): ApiKey | undefined {
789 const row = tenantStmts.getApiKeyByHash.get(hash) as Record<string, unknown> | undefined;
790 return row ? rowToApiKey(row) : undefined;
791 },
792
793 listApiKeys(userId: string): ApiKey[] {
794 const rows = tenantStmts.listApiKeys.all(userId) as Record<string, unknown>[];

Callers

nothing calls this directly

Calls 1

rowToApiKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…