expo / expo

An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.
https://docs.expo.dev
MIT License
34.95k stars 5.61k forks source link

Upgrade to expo 48 broke Google authentication #21454

Closed 5PK closed 1 year ago

5PK commented 1 year ago

Summary

I followed steps exactly like in this documentation -> https://docs.expo.dev/guides/authentication/#google

Recently upgraded to expo 48 from 46 and the below error now shows up when attempting to signin with google

ValidationError: "client_id" is not allowed. "response_type" is not allowed. "state" is not allowed. "scope" is not allowed

Reverted my code to 46 and this error is resolved. expo48 seems to break something with google auth.

Didn't check with android.

Managed or bare workflow?

managed

What platform(s) does this occur on?

iOS

Package versions

heres my whole package.json

{ "name": "", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "lint": "eslint App/*/js --cache --max-warnings=0", "start": "eslint App/*/js --cache --max-warnings=0 && expo start", "setEnv:dev": "gulp set --env=dev", "local": "gulp set --env=local && npm start", "dev": "gulp set --env=dev && npm start", "uat": "gulp set --env=uat && npm start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject", "yolo": "expo start", "test": "jest" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@gorhom/bottom-sheet": "^4.4.5", "@react-native-async-storage/async-storage": "~1.17.3", "@react-navigation/bottom-tabs": "^6.4.0", "@react-navigation/drawer": "^6.5.0", "@react-navigation/native": "^6.0.11", "@react-navigation/native-stack": "^6.7.0", "@react-navigation/stack": "^6.2.2", "@types/jest": "^29.2.4", "@types/node": "^18.11.17", "@types/react": "^18.0.26", "@types/react-dom": "^18.0.9", "@types/react-native": "~0.69.1", "axios": "^0.27.2", "date-fns": "^2.29.3", "expo": "^46.0.0", "expo-apple-authentication": "~4.3.0", "expo-application": "~4.2.2", "expo-auth-session": "~3.7.4", "expo-constants": "~13.2.4", "expo-device": "~4.3.0", "expo-font": "~10.2.0", "expo-image-picker": "~13.3.1", "expo-linear-gradient": "~11.4.0", "expo-location": "~14.3.0", "expo-notifications": "~0.16.1", "expo-random": "~12.3.0", "expo-secure-store": "~11.3.0", "expo-splash-screen": "~0.16.2", "expo-system-ui": "~1.3.0", "expo-updates": "~0.14.6", "expo-web-browser": "~11.0.0", "form-data": "^4.0.0", "gulp": "^4.0.2", "gulp-clean": "^0.4.0", "gulp-rename": "^2.0.0", "jest": "^26.6.3", "jest-expo": "^47.0.1", "lottie-react-native": "5.1.3", "react": "18.0.0", "react-dom": "18.0.0", "react-native": "0.69.6", "react-native-animated-progress": "^1.0.2", "react-native-dropdown-picker": "^5.4.2", "react-native-gesture-handler": "~2.5.0", "react-native-gifted-chat": "^1.0.4", "react-native-google-places-autocomplete": "^2.4.1", "react-native-maps": "0.31.1", "react-native-maps-directions": "1.7.6", "react-native-reanimated": "~2.9.1", "react-native-safe-area-context": "4.3.1", "react-native-screens": "~3.15.0", "react-native-svg": "12.3.0", "react-native-swipe-gestures": "^1.0.5", "react-native-switch": "^1.5.1", "react-native-ui-lib": "^6.20.3", "react-native-web": "~0.18.7", "react-test-renderer": "18.0.0", "socket.io-client": "^4.5.3", "styled-components": "^5.3.6", "typescript": "^4.9.4" }, "devDependencies": { "@babel/core": "^7.18.6", "eslint": "^8.22.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.6.1", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", "prettier": "2.7.1" }, "private": true }

Environment

expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.22621 Binaries: Node: 18.14.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 9.3.1 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: AI-221.6008.13.2211.9477386 npmPackages: expo: ^46.0.0 => 46.0.17 react: 18.0.0 => 18.0.0 react-dom: 18.0.0 => 18.0.0 react-native: 0.69.6 => 0.69.6 react-native-web: ~0.18.7 => 0.18.10 Expo Workflow: managed

Reproducible demo

worked in 46 and not 48, and my code looks exactly like the docs.

Stacktrace (if a crash is involved)

No response

expo-bot commented 1 year ago

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources