Skip to content

Commit a1820e7

Browse files
committed
Removed max expiration
Maximum expiration will be handled by gateway
1 parent 3995cf5 commit a1820e7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/SecretsManager.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,8 @@ export class SecretsManager {
205205
throw Error('slotId must be a integer of at least 0')
206206
}
207207

208-
if (
209-
!Number.isInteger(minutesUntilExpiration) ||
210-
minutesUntilExpiration < 5 ||
211-
minutesUntilExpiration > 2880
212-
) {
213-
throw Error(
214-
'minutesUntilExpiration must be an integer of at least 5 and less than 2880 (48 hours)',
215-
)
208+
if (!Number.isInteger(minutesUntilExpiration) || minutesUntilExpiration < 5) {
209+
throw Error('minutesUntilExpiration must be an integer of at least 5')
216210
}
217211

218212
const encryptedSecretsBase64 = Buffer.from(encryptedSecretsHexstring.slice(2), 'hex').toString(

0 commit comments

Comments
 (0)