Skip to content

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

Update index.ts

Daniel Hougaard7f1963f1ac83
diff --git a/backend/src/lib/project/index.ts b/backend/src/lib/project/index.ts
index d4e97ba17c..e0ed0d70bb 100644
--- a/backend/src/lib/project/index.ts
+++ b/backend/src/lib/project/index.ts
@@ -40,12 +40,12 @@ export const createWsMembers = ({ members, decryptKey, userPrivateKey }: AddUser
return newWsMembers;
};
-type TCreateWorkspaceKeyDTO = {
+type TCreateProjectKeyDTO = {
publicKey: string;
privateKey: string;
};
-export const createWorkspaceKey = ({ publicKey, privateKey }: TCreateWorkspaceKeyDTO) => {
+export const createProjectKey = ({ publicKey, privateKey }: TCreateProjectKeyDTO) => {
// 3. Create a random key that we'll use as the project key.
const randomBytes = crypto.randomBytes(16).toString("hex");