(env: Env)
| 390 | * MFA enroll/verify request. |
| 391 | */ |
| 392 | const checkMfaKeyInProd = (env: Env): string[] => { |
| 393 | if (env.NODE_ENV !== "production" || env.MFA_ENCRYPTION_KEY !== "") { |
| 394 | return []; |
| 395 | } |
| 396 | |
| 397 | return [ |
| 398 | "MFA_ENCRYPTION_KEY is required in production. Generate one with `openssl rand -base64 32`.", |
| 399 | ]; |
| 400 | }; |
| 401 | |
| 402 | const checkOrigins = (env: Env): string[] => { |
| 403 | if (env.NODE_ENV !== "production") { |