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

155
Views
Use RESTful API with and without JWT authentication

I have a web application with Angular front-end and a back-end developed using the Nest.JS framework.

The back-end RESTful API endpoints are secured with an SSO and JWT authentication.

Using the same web application I created a desktop application with the help of the NW.JS. The application setup is successful and can run on the desktop OS.

Now I need to use the same back-end RESTful API endpoints without the SSO but with JWT for the desktop application.

In some situations (ex. checking for updates), I only need to use the SSO login.

How can I use the Nest.JS server endpoints for this kind of use cases.

Is there a conditional way to write annotations/middleware that we can use to check the app is running on WEB or Desktop and bypass the SSO login?

Also this should be a much secure way to protect the endpoint in both situations.

NOTE: Identifying the running environment is also has configured and running well in the application.

Thank you very much

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!