()
| 20 | |
| 21 | export 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>({ |
nothing calls this directly
no outgoing calls
no test coverage detected