title: No longer able to obtain OAuth2 Access Token: invalid_scope error
body: <p>I have written a mobile application using the React Native Framework.</p>
  
  <p>This application uses Google's OAuth 2.0 endpoints to authorize access to Google APIs.</p>
  
  <p>I followed <a href="https://developers.google.com/identity/protocols/OAuth2InstalledApp" rel="noreferrer">the documentation</a> to implement this.</p>
  
  <p>I have been able to retrieve Access Tokens and Refresh tokens for months now by making the following HTTP requests:</p>
  
  <p>HTTP GET Request to retrieve Authorization Code:</p>
  
  <pre><code>https://accounts.google.com/o/oauth2/v2/auth?scope=email%20profile%20https://www.googleapis.com/auth/youtube%20https://www.googleapis.com/auth/yt-analytics.readonly%20https://www.googleapis.com/auth/yt-analytics-monetary.readonly%20https://www.googleapis.com/auth/youtubepartner&amp;response_type=code&amp;client_id=OMITTED&amp;redirect_uri=OMITTED');
  </code></pre>
  
  <p>HTTP POST Request to exchange Authorization Code for Access Token:</p>
  
  <pre><code>let queryString = "code=" + authCode + "&amp;" + "client_id=OMITTED&amp;redirect_uri=OMITTED&amp;grant_type=authorization_code";
  
  fetch('https://www.googleapis.com/oauth2/v4/token', {method:'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }, body: queryString})
  </code></pre>
  
  <p>This POST Request is now getting the following error within the response:</p>
  
  <p>Error:</p>
  
  <pre><code>"invalid_scope"
  error_description
  :
  "Some requested scopes were invalid. {valid=[https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/youtube, https://www.googleapis.com/auth/yt-analytics.readonly, https://www.googleapis.com/auth/yt-analytics-monetary.readonly], invalid=[https://www.googleapis.com/auth/youtubepartner#]}"
  </code></pre>
  
  <p>Again, I have been able to retrieve an Access Token and Refresh Token for months using this same code.</p>
  
  <p>This error has suddenly been surfacing as of 09/12/2018.</p>
  
  <p>There have been no changes to my code.</p>
  
  <p>Does anyone have any ideas regarding why I am now getting this error? </p>