MCPcopy Create free account
hub / github.com/ChurchApps/B1Admin / handleDeleteKey

Function handleDeleteKey

src/settings/components/DeveloperSection.tsx:64–68  ·  view source on GitHub ↗
(key: ApiKeyInterface)

Source from the content-addressed store, hash-verified

62 const loading = apiKeysQuery.isLoading || connectionsQuery.isLoading;
63
64 const handleDeleteKey = async (key: ApiKeyInterface) => {
65 if (!(await confirm(Locale.label("settings.developer.deleteKeyConfirm").replace("{name}", key.name || "")))) return;
66 await ApiHelper.delete("/apiKeys/" + key.id, "MembershipApi");
67 apiKeysQuery.refetch();
68 };
69
70 const handleRevoke = async (conn: ConnectionInterface) => {
71 if (!(await confirm(Locale.label("settings.developer.revokeConfirm").replace("{name}", conn.clientName || ""), { confirmLabel: Locale.label("settings.developer.revoke") }))) return;

Callers 1

DeveloperSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected