MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / getAPIKeyInfo

Function getAPIKeyInfo

lib/api.ts:795–799  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

793 * 获取 API Key 信息(兼容旧代码)
794 */
795export async function getAPIKeyInfo(): Promise<PluginAPIKey | null> {
796 const keys = await getAPIKeys();
797 // 返回第一个激活的 API Key,如果没有则返�� null
798 return keys.find(key => key.is_active) || keys[0] || null;
799}
800
801/**
802 * 生成新的 API Key

Callers

nothing calls this directly

Calls 1

getAPIKeysFunction · 0.85

Tested by

no test coverage detected