MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / getCredentials

Function getCredentials

ui/src/api/config.ts:34–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 // ==================== Credential Vault ====================
33
34 async getCredentials(): Promise<{ credentials: CredentialSummary[] }> {
35 const res = await fetch('/api/config/credentials')
36 if (!res.ok) throw new Error('Failed to load credentials')
37 return res.json()
38 },
39
40 async addCredential(input: { vendor: string; label?: string; wires: Partial<Record<WireShape, string>>; apiKey: string; lastModel?: string }): Promise<{ slug: string; vendor: string }> {
41 const res = await fetch('/api/config/credentials', { method: 'POST', headers, body: JSON.stringify(input) })

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected