Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

216
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda