function jwt() { const { secret } = config; return expressJwt({ secret, algorithms: ["HS256"] }).unless({ path: [ // public routes that don't require authentication "/users/authenticate", "/users/create", "/series/getAllSeries", "/series/getByIdSeries/:id", "/series/getByStreamingService/:streamingService", "/series/getMonthSeries/:monthPosition/:streamingServiceName?", ], }); }Estas rutas solo funcionan con token. La excepción para que trabajen públicamente no funciona.
"/series/getByIdSeries/:id", "/series/getByStreamingService/:streamingService", "/series/getMonthSeries/:monthPosition/:streamingServiceName?",