add encryption/decryption + env vars
This commit is contained in:
parent
2144ae053d
commit
bc2be3302a
5 changed files with 71 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue