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

258
Vistas
If Request responds with invalid OAuth key then generate new key

I have a React Native Frontend & Express.js backend. My backend calls a 3rd party API, to use this API you must provide an OAuth key for that user which expires every 2 hours. Sometimes when I call the API it returns with a 400 error saying OAuth is expired and if it has then generate a new OAuth key and save on Frontend. How can I add a check to all my Axios requests to see if the OAuth key has expired. Is this better to handle on the Frontend or Backend?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I think you could use a try-chatch statement to check if the key throws any errors.

about 4 years ago · Juan Pablo Isaza Denunciar
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