Back on Day 40, I built a mini authentication system using Node.js, Express, MongoDB, Mongoose, bcrypt, and JWT. It worked fine, but it was pure JavaScript: no type safety, no runtime validation. Today, on Day 44, I decided to refactor the entire thing with TypeScript and Zod.

Link to Day 40









Day 40 of...