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

Method createApiKey

mcp/src/server/sqlite.ts:583–583  ·  view source on GitHub ↗
(userId: string, name: string, expiresAt?: string)

Source from the content-addressed store, hash-verified

581
582 // API Keys
583 createApiKey(userId: string, name: string, expiresAt?: string): { apiKey: ApiKey; rawKey: string };
584 getApiKeyByHash(hash: string): ApiKey | undefined;
585 listApiKeys(userId: string): ApiKey[];
586 deleteApiKey(id: string): boolean;

Callers 1

createApiKeyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected