()
| 3 | import { CREDIT_CATEGORIES_ENCRYPTION_KEY } from '@/lib/config.server'; |
| 4 | |
| 5 | const getEncryptionKey = () => { |
| 6 | if (!CREDIT_CATEGORIES_ENCRYPTION_KEY) { |
| 7 | throw new Error('CREDIT_CATEGORIES_ENCRYPTION_KEY environment variable is required'); |
| 8 | } |
| 9 | return CREDIT_CATEGORIES_ENCRYPTION_KEY; |
| 10 | }; |
| 11 | |
| 12 | /** |
| 13 | * Encrypts a promo code using AES-256-GCM. |
no outgoing calls
no test coverage detected