MCPcopy
hub / github.com/fosrl/pangolin / unassociateIdp

Function unassociateIdp

src/components/OrgIdpTable.tsx:239–255  ·  view source on GitHub ↗
(idpId: number)

Source from the content-addressed store, hash-verified

237 };
238
239 const unassociateIdp = async (idpId: number) => {
240 try {
241 await api.delete(`/org/${orgId}/idp/${idpId}/association`);
242 toast({
243 title: t("success"),
244 description: t("idpUnassociatedDescription")
245 });
246 setIsUnassociateModalOpen(false);
247 router.refresh();
248 } catch (e) {
249 toast({
250 title: t("error"),
251 description: formatAxiosError(e),
252 variant: "destructive"
253 });
254 }
255 };
256
257 const columns: ExtendedColumnDef<IdpRow>[] = [
258 {

Callers 1

IdpTableFunction · 0.85

Calls 2

toastFunction · 0.90
formatAxiosErrorFunction · 0.90

Tested by

no test coverage detected