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

102
Vistas
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 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