Error 400: invalid_request Invalid parameter value for redirect_url: Missing authority: Sendmoney24:/oauth2redirect/google

SDK Version: 40
Platforms(Android/iOS/web/all): IOS

async googleAuthS() {
        let config = { 
            iosClientId: PM.settingsParam('google_iosClientId'),
            androidClientId: PM.settingsParam('google_androidClientId'),
            iosStandaloneAppClientId: PM.settingsParam('google_iosStandaloneAppClientId')
        };
        try {
            const { type, accessToken, user } = await Google.logInAsync(config);
            console.log('type', type);
            if (type === "success") {
                console.log('success! user', user);
            } else {
                console.log('!success');
            }
        } catch (e) {
            console.log('e.message', e.message);
        }
    }

I’ve made a standalone app, deploy them to TestFlight
– expo build:ios
– upload .ipa to App Store Connect

In TestFlight app app I getting an error after clicking Google Auth button:

Error 400: invalid_request  
Invalid parameter value for redirect_url: Missing authority: Sendmoney24:/oauth2redirect/google

err400

In Expo app there is no such error.

Google credentials created for IOS app.

err400_2

app.json

err3

I will be grateful for any help.
Thanks.

I have had the exact same issue and I ended up using the expo-google-sign-in package:

Here is my post with what looks to be the same issue

Here is the post on another thread

Hopefully Expo SDK 41 comes with a fix or better docs on how to get it working.

1 Like

Thank you very much!
Yesterday I found my error as you found :slight_smile: I used expo-google-app-auth. expo-google-sign-in helped me )

1 Like

That is great! Have a great day! Happy coding!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.