Skip to content

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

feat: update frontend queries to retrieve password

lemmyMwaura4b07234997ab
diff --git a/frontend/src/hooks/api/secretSharing/queries.ts b/frontend/src/hooks/api/secretSharing/queries.ts
index 89a804f6e1..4035217590 100644
--- a/frontend/src/hooks/api/secretSharing/queries.ts
+++ b/frontend/src/hooks/api/secretSharing/queries.ts
@@ -58,6 +58,7 @@ export const useGetActiveSharedSecretById = ({
);
return {
encryptedValue: data.encryptedValue,
+ password: data.password,
iv: data.iv,
tag: data.tag,
accessType: data.accessType,
diff --git a/frontend/src/hooks/api/secretSharing/types.ts b/frontend/src/hooks/api/secretSharing/types.ts
index d35fea8d69..c0dd2f8d60 100644
--- a/frontend/src/hooks/api/secretSharing/types.ts
+++ b/frontend/src/hooks/api/secretSharing/types.ts
@@ -30,6 +30,7 @@ export type TViewSharedSecretResponse = {
tag: string;
accessType: SecretSharingAccessType;
orgName?: string;
+ password?: string;
};
export type TDeleteSharedSecretRequest = {