MCPcopy Create free account
hub / github.com/SwishHQ/spread / getAllAuthKeys

Function getAllAuthKeys

web/src/api/services/authKeyService.ts:22–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21export const authKeyService = {
22 async getAllAuthKeys(): Promise<AuthKey[]> {
23 const response = await apiRequest<AuthKey[]>({
24 method: "GET",
25 url: "/core/auth-keys",
26 });
27
28 if (response.success && response.data) {
29 return response.data;
30 }
31 throw new Error(response.error || "Failed to fetch auth keys");
32 },
33
34 async createAuthKey(name: string): Promise<string> {
35 const response = await apiRequest<string>({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected