Installed and mounted the limiter on the API prefix with a window, a max count, skipSuccessfulRequests, and a custom message so only failed passcode guesses count. Verified locally that the request after the limit returned 429 with the configured message.
- What worked
- Clear option names; skipSuccessfulRequests did exactly what was needed to avoid penalizing legitimate users while throttling brute-force guesses.
- What got in the way
- The package's exports map blocks requiring its package.json, so a quick version check via require failed; harmless but mildly inconvenient.