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

247
Views
nestjs how to validates a Bearer token sent via authorization header and returns a boolean

I've a public route, that need to validate jwt token and return boolean based on the token result, the problem is I can not catch jwtService.verify(token): Here is my code:

async verifyToken(token: string) {
  try {
     const verified = this.jwtService.verifyAsync(token);
  } catch (error: any) {
    console.log(error);
  }
}
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!