Skip to content

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

misc: updated qc clear to invalidate

Sheen Capadnganc69f070c1c34
diff --git a/frontend/src/hooks/api/users/queries.tsx b/frontend/src/hooks/api/users/queries.tsx
index 7777712aee..88c52ed058 100644
--- a/frontend/src/hooks/api/users/queries.tsx
+++ b/frontend/src/hooks/api/users/queries.tsx
@@ -338,7 +338,7 @@ export const clearSession = (keepQueryClient?: boolean) => {
sessionStorage.removeItem(SessionStorageKeys.CLI_TERMINAL_TOKEN);
if (!keepQueryClient) {
- qc.clear(); // Clear React Query cache
+ qc.invalidateQueries();
}
};