安全
Make sure only the right people can access your applications
CVE-2020-15084:Express-jwtライブラリーのセキュリティ更新
const checkJwt = jwt({ secret: jwksRsa.expressJwtSecret({ rateLimit: true, jwksRequestsPerMinute: 5, jwksUri: `https://{DOMAIN}/.well-known/jwks.json` }), // Validate the audience and the issuer. audience: process.env.AUDIENCE, issuer: `https://{DOMAIN}/`, // restrict allowed algorithms algorithms: ['RS256'] });