add encryption/decryption + env vars

This commit is contained in:
Benjamin Palko 2025-01-08 16:14:24 -05:00
parent 2144ae053d
commit bc2be3302a
5 changed files with 71 additions and 3 deletions

View file

@ -7,6 +7,9 @@ const ValidateEnvironment = () => {
TWILIO_ACCOUNT_SID: z.string().min(1),
TWILIO_AUTH_TOKEN: z.string().min(1),
TWILIO_PHONE_NUMBER: z.string().regex(PhoneRegex),
SECRETS_PASSWORD: z.string().length(32),
SECRETS_SALT: z.string().min(16),
SECRETS_IV_POSITION: z.number().positive(),
})
.safeParse(process.env);