title: React Native with Google OpenID Connect
body: <p>I am working on a react native application and I have some problems with OpenID connect. I would like to use some &quot;Login with Google&quot; functionality.</p>
  <p>In normal (not native) react app I use the react-google-login library like this:</p>
  <pre><code>    import { GoogleLogin} from 'react-google-login';
      import axios from 'axios';
      
      const CLIENT_ID = 'xxxxx.apps.googleusercontent.com';
      
      const Login = () =&gt; {
          const loginHandler = (response) =&gt; {
              // I can use the OpenID JWT token got as response.tokenId e.g.
              axios.get(&quot;/myapi&quot;, {
                headers: {
                    Authorization: 'Bearer ' + response.tokenId
                }
              }).then(res =&gt; {
                ...
              });
          }
      
          return (
              &lt;React.Fragment&gt;
                      &lt;GoogleLogin
                          clientId={CLIENT_ID}
                          buttonText='Login'
                          onSuccess={loginHandler}
                          cookiePolicy={'single_host_origin'}
                          responseType='code,token'
                          uxMode=&quot;redirect&quot;
                      /&gt;
              &lt;/React.Fragment&gt;
          )
      }
      
      export default Login;
  </code></pre>
  <p>In the login handler as you can see I can use the OpenID JWT token and I can send it to the server.</p>
  <p>I need the same in React Native but I haven't found any simple library for that. Neither of them returns the OpenID JWT token just the Oauth2 access token.</p>
  <p>Does anybody have any idea which library I should use and how?</p>
  <p>Thanks</p>