title: How to get the user's phone number using react-google-login?
body: <p>I'm actually using this React library (<a href="https://www.npmjs.com/package/react-google-login" rel="nofollow noreferrer">https://www.npmjs.com/package/react-google-login</a>) to authenticate with Google.<br />
  As for the basic profile and email scopes, this works fine. On my client app on Google Cloud Platform, I've correctly enabled the People API (<a href="https://developers.google.com/people" rel="nofollow noreferrer">https://developers.google.com/people</a>) and added the correct scope to the scope list, in React (<a href="https://www.googleapis.com/auth/user.phonenumbers.read" rel="nofollow noreferrer">https://www.googleapis.com/auth/user.phonenumbers.read</a>). I've also ensured that my phone number on my Google Profile was made public even if I don't know if that could matter. After doing all this, the consent screen is working fine asking me to allow the app to access my phone number.<br />
  <br />
  However after login, I can only see the data linked to profile and email scopes. In the library I can see that they made some object properties as shown in the code below inside the library itself :</p>
  <pre class="lang-js prettyprint-override"><code>  function handleSigninSuccess(res) {
      /*
        offer renamed response keys to names that match use
      */
      const basicProfile = res.getBasicProfile()
      const authResponse = res.getAuthResponse(true)
      res.googleId = basicProfile.getId()
      res.tokenObj = authResponse
      res.tokenId = authResponse.id_token
      res.accessToken = authResponse.access_token
      res.profileObj = {
        googleId: basicProfile.getId(),
        imageUrl: basicProfile.getImageUrl(),
        email: basicProfile.getEmail(),
        name: basicProfile.getName(),
        givenName: basicProfile.getGivenName(),
        familyName: basicProfile.getFamilyName()
      }
      onSuccess(res)
    }
  </code></pre>
  <p>\</p>
  <p>So the problem is that I don't know if I even receive the phone data or if I just can't read it because I don't know how to call the phone data inside the response, in terms of variables name in React. Anyone has an idea ?</p>