if (!options.algorithms) throw new Error('algorithms should be set'); ^ Error: algorithms should be set code example
Example 1: throw new Error('algorithms should be set');
expressJwt({ secret: process.env.JWT_SECRET, algorithms: ['RS256'] });
Example 2: express-jwt error algorithms should be set
expressJwt({ secret: process.env.JWT_SECRET, algorithms: ['RS256'] });