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
评论列表(0条)