From 63333159cabcd092b29351ca3f0f54e3d41a3e20 Mon Sep 17 00:00:00 2001 From: lemmyMwaura Date: Tue, 6 Aug 2024 12:58:53 +0300 Subject: [PATCH] feat: fetch password when fetching secrets --- backend/src/server/routes/v1/secret-sharing-router.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/server/routes/v1/secret-sharing-router.ts b/backend/src/server/routes/v1/secret-sharing-router.ts index d9837b4c5..95fe4e54b 100644 --- a/backend/src/server/routes/v1/secret-sharing-router.ts +++ b/backend/src/server/routes/v1/secret-sharing-router.ts @@ -63,6 +63,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) => response: { 200: SecretSharingSchema.pick({ encryptedValue: true, + password: true, iv: true, tag: true, expiresAt: true, @@ -84,6 +85,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) => encryptedValue: sharedSecret.encryptedValue, iv: sharedSecret.iv, tag: sharedSecret.tag, + password: sharedSecret.password, expiresAt: sharedSecret.expiresAt, expiresAfterViews: sharedSecret.expiresAfterViews, accessType: sharedSecret.accessType,