export const REDIS_CONFIG = {
  LOGIN_ATTEMPTS: {
    MAX_ATTEMPTS: process.env.LOGIN_MAX_ATTEMPTS
      ? parseInt(process.env.LOGIN_MAX_ATTEMPTS)
      : 5,
    LOCKOUT_DURATION: process.env.LOGIN_LOCKOUT_DURATION
      ? parseInt(process.env.LOGIN_LOCKOUT_DURATION)
      : 15 * 60,
    ATTEMPT_WINDOW: process.env.LOGIN_ATTEMPT_WINDOW
      ? parseInt(process.env.LOGIN_ATTEMPT_WINDOW)
      : 30 * 60,
  },
  KEY_PREFIXES: {
    LOGIN_ATTEMPTS: "login_attempts:",
    LOGIN_LOCK: "login_lock:",
  },
} as const
