Skip to content
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

Expo Google oath invalid_request redirect_uri=exp:// #28544

Open
testmyyapp opened this issue Apr 30, 2024 · 3 comments
Open

Expo Google oath invalid_request redirect_uri=exp:// #28544

testmyyapp opened this issue Apr 30, 2024 · 3 comments
Labels
AuthSession needs review Issue is ready to be reviewed by a maintainer

Comments

@testmyyapp
Copy link

testmyyapp commented Apr 30, 2024

Minimal reproducible example

https://github.com/testmyyapp/Sign-In-With-Google-TEST

Which package manager are you using? (Yarn is recommended)

npm

If the issue is web-related, please select the bundler (web.bundler in the app.json)

metro

Summary

Hi, Im new on react native and i'm trying to implement google oath without firebase on an expo app. I set up all the credentials good in the google console following the doc.
I'm getting this error

I tried everything, i m stuck.

expo-credentials
IMG_0558

Environment

expo-env-info 1.2.0 environment info:
System:
OS: Linux 6.5 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
Shell: 5.1.16 - /bin/bash
npmPackages:
@expo/webpack-config: ^19.0.1 => 19.0.1
expo: ^49.0.23 => 49.0.23
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.72.10 => 0.72.10
react-native-web: ~0.19.6 => 0.19.10
Expo Workflow: managed

@testmyyapp testmyyapp added needs validation Issue needs to be validated Router expo-router labels Apr 30, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels Apr 30, 2024
@marklawlor marklawlor added AuthSession and removed Router expo-router labels Apr 30, 2024
@EvanBacon
Copy link
Contributor

expoClientId is not supported anymore and should have been removed. You cannot use Google auth-session in Expo Go anymore. Create a dev client to get unblocked here. This will use the bundle identifier as the redirect_uri which should match the bundle id you added to the Google cloud console.

@EvanBacon
Copy link
Contributor

@testmyyapp your client secret is also publicly visible in that screenshot, you should rotate the secret.

EvanBacon added a commit that referenced this issue May 2, 2024
…uth proxy. (#28590)

# Why

- Related #28544
- expoClientId would be used when running in Expo Go to use a web
authentication in a native app. This only worked with the auth proxy
which we deprecated a while ago.

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@testmyyapp
Copy link
Author

@EvanBacon thanks for your answers i builded development build on android and it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AuthSession needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants