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

Function createAuthKey

web/src/api/services/authKeyService.ts:34–45  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

32 },
33
34 async createAuthKey(name: string): Promise<string> {
35 const response = await apiRequest<string>({
36 method: "POST",
37 url: "/core/auth-key/create",
38 data: { name },
39 });
40
41 if (response.success && response.data) {
42 return response.data;
43 }
44 throw new Error(response.error || "Failed to create auth key");
45 },
46};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected