Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3718

Application with nextjs auth stops working a few hours after deploy due to google auth 2.0

$
0
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.jsAction

pages\api\YoutubeApi\getYTData.jsRequest to bring the playlists

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

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

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


Viewing all articles
Browse latest Browse all 3718

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>