MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / checkMfaKeyInProd

Function checkMfaKeyInProd

apps/api/src/config/env/validate.ts:392–400  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

390 * MFA enroll/verify request.
391 */
392const 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
402const checkOrigins = (env: Env): string[] => {
403 if (env.NODE_ENV !== "production") {

Callers 1

checkInvariantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected