title: Callback error on YouTube socialite provider for Laravel
body: <p>I am trying to set up Oauth with the YouTube Data API. I had a Laravel app which has Socialite set up. Out of the box YouTube isn't set up with this but I saw that there is a provider for YouTube here: </p>
  
  <p><a href="https://socialiteproviders.netlify.app/providers/you-tube.html" rel="nofollow noreferrer">https://socialiteproviders.netlify.app/providers/you-tube.html</a></p>
  
  <p>I have done all of the steps outlined on the page along with all routes that I need. I have also done the Oauth set up on Google Developer Console and got the client ID/secret key and set the callback.</p>
  
  <p>When I use the login URL it works where I'm redirected for login with Google. The problem comes when the callback URL is reached. I get the error:</p>
  
  <p><strong>ErrorException
  Undefined index: items</strong> </p>
  
  <p>This occurs on the provider callback function which has the code:</p>
  
  <p><code>$user = Socialite::driver('youtube')-&gt;user();</code></p>
  
  <p>I have tried using stateless:</p>
  
  <p><code>$user = Socialite::driver('youtube')-&gt;stateless()-&gt;user();</code></p>
  
  <p>But get the same error. All caches have been cleared. I am pretty sure that the setup was done correctly as I'm also using the Twitch provider from <a href="https://socialiteproviders.netlify.app/providers/twitch.html" rel="nofollow noreferrer">https://socialiteproviders.netlify.app/providers/twitch.html</a> which the setup was similar and it works correctly.</p>
  
  <p>Please can anyone advise? Thanks.</p>