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

217
Views
How to generate OAUTH2 token in SUPERTEST / NODEJS using clientid and client secret?

I am automating APIs using NPM-Supertest-javascript framework. Currently I am hardcoding the JWT access token (which I get from browser) and it works well. Now I am looking to automate the process of generating access token as well so that there will be no manual intervention.

I can generate the same access token using Postman where I input clientid, clientsecret, callback url, access token url, auth url and grant type etc.

As shown below:

enter image description here

How do I achieve the same using code (javascript-supertest) ? Thanks in advance.

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!