Skip to content

Implement a simple reset pass endpoint

Course: Rate limitting, DDoS and Captcha - chapter 3

  1. Init a typescript project
npm init -y
npx tsc --init
  1. Update tsconfig
"rootDir": "./src",
"outDir": "./dist"
  1. Add deps
npm i express @types/express
  1. Add the code
$1b

Try hitting it with various OTPs one by one. Notice the server doesn’t rate limit you