Node.js and TypeScript Tutorial: Secure an Express API

I followed this tutorial. I found the steps clear and accurate to produce the intended results. I only had to correct one line in authz.middleware.ts that caused an issue. Line 3 should be:

const { expressjwt: jwt } = require(“express-jwt”); //express-jwt - npm

1 Like