title: expo-auth-session/providers/google not working on standalone app: invalid_scheme
body: <p>I hope that someone can help me with the following issue which I’ve been struggling with for a while.</p>
  <p>I am trying to use expo-auth-session/providers/google for Google Auth on Android in Expo SDK 39.</p>
  <p>I have followed the guide <a href="https://docs.expo.io/guides/authentication/#google" rel="nofollow noreferrer">here</a> but everything I do ends up with a google message:</p>
  <blockquote>
  <p>Error 400: invalid_request Invalid parameter value for redirect_uri:
  Invalid scheme: com.my_domain.myapp:/oauthredirect</p>
  </blockquote>
  <p>And I just can not understand what am I doing wrong.</p>
  <p>I need to mention the fact that in the Expo Client the login/signup works perfectly with the exact same code.</p>
  <p>I checked the credentials an infinite amount of times and what bothers me is that it works in the expo client but not on the standalone app so I am sure it’s something related to the google config but I don’t know what.</p>
  <p>Here is my app.json:</p>
  <pre><code>{
    &quot;expo&quot;: {
      ...
      &quot;scheme&quot;: &quot;myapp&quot;,
      &quot;platforms&quot;: [
        &quot;ios&quot;,
        &quot;android&quot;
      ],
      ...
      &quot;android&quot;: {
        &quot;package&quot;: &quot;com.my_domain.myapp&quot;,
        ...
      }
    }
  }
  </code></pre>
  <p>And my integration:</p>
  <pre><code>import React, { useState } from 'react';
  import * as WebBrowser from &quot;expo-web-browser&quot;;
  import * as Google from 'expo-auth-session/providers/google';
  import PillButton from '../UI/PillButton';
  
  const SignupCmp = props =&gt; {
      const [browserOpen, setBrowserOpen] = useState(null);
  
      const [request, response, promptAsync] = Google.useAuthRequest({
          expoClientId: '123-myuniqueid.apps.googleusercontent.com',
          androidClientId: '123-myuniqueid.apps.googleusercontent.com'
      });
  
      useEffect(() =&gt; {
          WebBrowser.warmUpAsync().then(r =&gt; console.log('warmed'));
  
          return () =&gt; {
              WebBrowser.coolDownAsync().then(r =&gt; console.log('cooled'));
          };
      }, []);
  
      useEffect(() =&gt; {
          if (response?.type === 'success') {
              const { authentication } = response;
              // console.log(authentication);
          }
      }, [response]);
  
  
      const handleBrowserOpen = async (url) =&gt; {
          let result = await WebBrowser.openBrowserAsync(url );
          setBrowserOpen(result);
      }
  
      return (
          &lt;View&gt;
              &lt;PillButton
                  disabled={!request}
                  title={I18n.t('authScreens.signupWithGoogle')}
                  type=&quot;solid&quot;
                  onPress={() =&gt; { promptAsync().then(async val =&gt; {
                    
                    props.googleAuth(val.authentication.accessToken);
                  }) }}
              /&gt;
          &lt;/View&gt;
      );
  };
  
  export default SignupCmp;
  </code></pre>
  <p>I really need help on this one since I am out of ideas.</p>
  <p><strong>UPDATE</strong></p>
  <p>I updated the redirectUri property in the useAuthRequest as it follows:</p>
  <pre><code>const [request, response, promptAsync] = Google.useAuthRequest({
      expoClientId: '123-myuniqueid.apps.googleusercontent.com',
      androidClientId: '1234-myuniqueid.apps.googleusercontent.com',
      redirectUri: AuthSession.makeRedirectUri({
        native: 'myapp:/oauthredirect',
        useProxy: true
      }),
      scopes: [
        'profile',
        'email'
      ]
    }, {});
  </code></pre>
  <p>And now the message has changed to</p>
  <p><code>Invalid parameter value for redirect_uri: Missing authority: myapp:/oauthredirect</code></p>
  <p>The login in the expo client still works as it should.</p>
  <p>I tried creating a new API key in the Google Console and tried different settings there but nothing seems to have worked.</p>
  <p>I could really do with some help.
  Thank you!</p>