Skip to content

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

Remove dependency cycle

Tuan Dangbaaa92427f6c
diff --git a/frontend/src/helpers/key.ts b/frontend/src/helpers/key.ts
index 57485a35a2..05562628d8 100644
--- a/frontend/src/helpers/key.ts
+++ b/frontend/src/helpers/key.ts
@@ -1,8 +1,6 @@
import Aes256Gcm from '@app/components/utilities/cryptography/aes-256-gcm';
import { deriveArgonKey } from '@app/components/utilities/cryptography/crypto';
-import { KeyService } from '../services';
-
/**
* @param {Object} obj
* @param {Number} obj.encryptionVersion
@@ -81,7 +79,6 @@ let privateKey;
throw new Error('Failed to decrypt private key');
}
- KeyService.setPrivateKey(privateKey);
return privateKey;
}