express-jwt error algorithms should be set

JavaScript
expressJwt({ secret:  process.env.JWT_SECRET, algorithms: ['RS256'] });expressJwt({ secret:  process.env.JWT_SECRET, algorithms: ['RS256'] });

Source

Also in JavaScript: