Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
Public routes with parameters that do not require authentication do not work in express
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?",
    ],
  });
}

This routes only work with token. The exception for them to work publicly does not work

"/series/getByIdSeries/:id",
"/series/getByStreamingService/:streamingService",
"/series/getMonthSeries/:monthPosition/:streamingServiceName?",
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!