New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google authentication not working with Expo SDK 48 #21944
Comments
Same issue =(( |
Same issue. Using Firebase JS SDK. |
Same issue. 😔 |
Has anybody found a possible fix or workaround? |
Hey, I have similar issue - have managed to get it working using expo-dev-client. I didn't find a way to fix this for Expo Go - not sure if there is one currently. It seems like using Oauth google login on IOS, currently requires building the app. Once you configure the build, you can use
to get the correct redirect URL.
Also remember to generate IOS credentials in the google console. |
Works after a rebuild. Thanks! |
Thank you for filing this issue! |
Has anyone been able to get this working for a preview build? Your comments helped me get the development build working with Google Auth through firebase, but when I switch to a preview build II get the following error: "Access blocked: This app's request is invalid. You can't sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Error 400: redirect_uri_mismatch". |
Ya same issue. Would rather not use firebase auth because we're using mongo db. Getting the validation error on iOS |
It appears that expo is slowly forcing everybody to use dev clients. add for expo-dev-client, use |
I have also the same issue here. |
@Rashed94x, (going through the minimal reproducible example link) Instead of |
Hey @amandeepmittal Are you suggesting that to use the AuthSession API with iOS on Expo SDK 48, it's necessary to utilize development builds? If that's the case, does that means that i have to work on a macOS i order to run an ios simulator to run the development build? in other words, is it necessary to use macOS to (develop and test) AuthSession API with ios? |
@Rashed94x, yes. We deprecated authProxy from SDK 48 (more info in this blog post as to why) and moving forward, we recommend creating development builds because You can use EAS to create a development build on the cloud and use an iOS device to test it or if you have access to macOS with Xcode installed, you can create development builds locally and use iOS simulator for testing. |
We've deprecated Google auth provider from |
@amandeepmittal If I want to implement Google sign in on an Expo Go application, is it no longer possible? |
@ansh, with SDK 49, it is not. You'll have to create a development build and use a library like https://github.com/react-native-google-signin/google-signin since it modifies custom native code via a config plugin. |
@amandeepmittal That is unfortunate! The package you linked to requires payment for most new functionality and even bug fixes. |
It seems like there is less and less of a reason to even use Expo going forward. Is the entire project being shut down? |
This is really not a great thing, I spent almost a day trying to implement google oauth for react native, and here I see it is not possible with SDK 49, and this package https://github.com/react-native-google-signin/google-signin doesn't support supabase well, what options are left? |
Minimal reproducible example
https://github.com/Rashed94x/expo48-google-auth
Summary
Expected behavior
When the user clicks on the sign-in button, a pop-up web browser should open, allowing the user to select a Google account to use for logging in to the Expo app. The user should then be redirected back to the app and authenticated with their selected Google account.
Actual behavior
After upgrading to Expo SDK 48 and attempting to sign in with Google, a web browser opens with the error message "ValidationError: 'client_id' is not allowed. 'response_type' is not allowed. 'state' is not allowed. 'scope' is not allowed." The user is not able to select a Google account and authenticate with the app.
Affected platforms
This issue affects iOS devices when using Expo SDK 48.
Environment
expo-env-info 1.0.5 environment info:
System:
OS: Linux 5.19 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm
npmPackages:
expo: ~48.0.9 => 48.0.9
react: 18.2.0 => 18.2.0
react-native: 0.71.4 => 0.71.4
Expo Workflow: managed
The text was updated successfully, but these errors were encountered: