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

97
Visualizações
Application with nextjs auth stops working a few hours after deploy due to google auth 2.0

I have an application with nextjs where I identify the user with nextj auth so I can manage the youtube playlist, everything was working normally, until I add a new request and now when I deploy and a few hours pass, the application stops working and the error that google brings me is

"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential"

The new request I added was that for each playlist that the user had, I would make a call to each of those playlists to bring me the videos they have and save them in the redux

Before I added this new request on line 38, this error did not happen

Actions.js Action

pages\api\YoutubeApi\getYTData.js Request to bring the playlists

pages\api\YoutubeApi\getVideosFromPlaylists.js pt 1 Request to bring the videos

pages\api\YoutubeApi\getVideosFromPlaylists.js pt 2 Request to bring the videos

pages\api\YoutubeApi\getVideosFromPlaylists.js pt 3 Request to bring the videos

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