Adjustments to secret sharing styling

This commit is contained in:
Tuan Dang
2024-07-27 07:31:30 -07:00
parent 0fa6b7a08a
commit a30e3874cd
10 changed files with 114 additions and 271 deletions
@@ -64,12 +64,13 @@ export const secretSharingServiceFactory = ({
iv,
tag,
hashedHex,
expiresAt,
expiresAt: new Date(expiresAt),
expiresAfterViews,
userId: actorId,
orgId,
accessType
});
return { id: newSharedSecret.id };
};
@@ -97,7 +98,7 @@ export const secretSharingServiceFactory = ({
iv,
tag,
hashedHex,
expiresAt,
expiresAt: new Date(expiresAt),
expiresAfterViews,
accessType
});
@@ -16,8 +16,8 @@ export type TCreatePublicSharedSecretDTO = {
iv: string;
tag: string;
hashedHex: string;
expiresAt: Date;
expiresAfterViews: number;
expiresAt: string;
expiresAfterViews?: number;
accessType: SecretSharingAccessType;
};