feat: secrets expire either with time or views

This commit is contained in:
ShubhamPalriwala
2024-05-31 12:47:19 +05:30
parent e7d32b5f2d
commit 29b106c5bd
15 changed files with 88 additions and 134 deletions
@@ -13,8 +13,8 @@ export type TCreateSharedSecretDTO = {
iv: string;
tag: string;
hashedHex: string;
expiresAt?: Date;
expiresAfterViews?: number;
expiresAt: Date;
expiresAfterViews: number;
} & TSharedSecretPermission;
export type TDeleteSharedSecretDTO = {