Invalid parameter value for redirect_uri: Missing authority in the URI

Please provide the following:

  1. SDK Version: 41.0.0
  2. Platforms(Android/iOS/web/all): iOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

expo-google-app-auth

I got
Error 400: invalid_request
Invalid parameter value for redirect_uri: Missing authority in the URI
by following the instruction mentioned here: https://docs.expo.dev/versions/latest/sdk/google/#deploying-to-a-standalone-app-on-ios

It works fine on expo go and the Android standalone app but for some reason, it failed in an ios device or simulator.

  const config = {
      iosClientId:
        <ios_client_id>,
      androidClientId:
        <android_client_id>,
      androidStandaloneAppClientId:
        <android_standalone_app_client_id>,
      iosStandaloneAppClientId:
        <ios_standalone_app_client_id>,
      scope: ["profile", "email"],
    };

    let result: any;
    try {
      result = await Google.logInAsync(config);
 // ....

Hey @tque, this module has been deprecated in favor of using the AuthSession module. Are you able to migrate your app or is something blocking you? See here for how to implement Google auth with the new and preferred way.

Cheers,
Adam

1 Like

I tried out the AuthSession module but still have the same issue.


Here is the error image. I couldn’t find anything related to redirect_uri to tackle this problem

It also doesn’t work using firebase.

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