MCPcopy
hub / github.com/benjitaylor/agentation / createApiKey

Function createApiKey

mcp/src/server/tenant-store.ts:137–143  ·  view source on GitHub ↗
(
  userId: string,
  name: string,
  expiresAt?: string
)

Source from the content-addressed store, hash-verified

135
136// API Keys
137export function createApiKey(
138 userId: string,
139 name: string,
140 expiresAt?: string
141): { apiKey: ApiKey; rawKey: string } {
142 return getTenantStore().createApiKey(userId, name, expiresAt);
143}
144
145export function getApiKeyByHash(hash: string): ApiKey | undefined {
146 return getTenantStore().getApiKeyByHash(hash);

Callers

nothing calls this directly

Calls 2

getTenantStoreFunction · 0.85
createApiKeyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…