Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

257
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda