node js api validating headers jwt tokens github code example
Example: throw new Error('algorithms should be set');
expressJwt({ secret: process.env.JWT_SECRET, algorithms: ['RS256'] });
expressJwt({ secret: process.env.JWT_SECRET, algorithms: ['RS256'] });