• Jobs
  • About Us
  • Jobs
    • Home
    • Jobs
    • Courses and challenges
  • Businesses
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

183
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.

over 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Show me some job opportunities
There's an error!