Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(gateway-ui): widen the revoke response method type

bernie-gd281af11d4ef
diff --git a/frontend/src/hooks/api/gateways-v2/mutations.tsx b/frontend/src/hooks/api/gateways-v2/mutations.tsx
index e92cbd2689..675ca94819 100644
--- a/frontend/src/hooks/api/gateways-v2/mutations.tsx
+++ b/frontend/src/hooks/api/gateways-v2/mutations.tsx
@@ -104,7 +104,7 @@ export const useRevokeGatewayAccess = () => {
return useMutation({
mutationFn: async ({ gatewayId }: { gatewayId: string }) => {
const { data } = await apiRequest.post<{
- method: "aws" | "token";
+ method: "aws" | "kubernetes" | "token";
}>(`/api/v3/gateways/${gatewayId}/revoke`);
return data;
},