Problem with Google Sign In using React Native (Expo) - Stack Overflow

I'm using @react-native-google-signingoogle-signin, the free version. I tried following some tuto

I'm using @react-native-google-signin/google-signin, the free version. I tried following some tutorials to implement the Login functionality, the problem is it throws Developer_Error.

I could make it work on Android locally by using the SHA1 of the gradle folder of the prebuilt app. But for the final deploy I'm using the SHA1 generated by eas credentials on Android.

I configured the webClientId (only field allowed by the lib, some tutorials mention androidClientId but that doesn't exist in the current version).

GoogleSignin.configure({
  webClientId:
    "mytoken-mytoken.apps.googleusercontent", //this is the android clientId generated when creating the OAuth in the google console.
});

and in my app.json I have correctly set the scheme, the CFBundleURLSchemes under CFBundleURLTypes under infoPlist. Also I set up iosUrlScheme in the rn google signin plugin with the same iosClientId that I put into the CFBundleURLSchemes.

Idk, but the docs in the RN lib are pretty trash, the tutorials are all outdated. I tried also using expo-auth-session but I couldn't even get it to work locally, after loggin instead of logging the token it redirected to another part of the app.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744791681a4593953.html

相关推荐

  • Problem with Google Sign In using React Native (Expo) - Stack Overflow

    I'm using @react-native-google-signingoogle-signin, the free version. I tried following some tuto

    10小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信