Closed emmanuelfrancis closed 7 months ago
Hello and thanks for reporting, This issue is missing a lot of information, such as platform and reproducible code. It's not actionable at this point.
Thank you 🙂
@vonovak thanks for the quick reply. Sorry about not providing the details. I have just updated the details above. Could you please check and let me know if I am missing anything or if you would need more details.
Thanks alot.
Hello, thanks for adding the details. There is a chance that I documented this incorrectly, I'll need to double check but it'll take some time. What is it that you're trying to achieve in the end?
Thank you
I am trying to do the following:
@vonovak I think I have to use serverAuthCode and refreshToken to get the idToken on the backend.
Can you explain a little more, and at a higher-level what you want to do?
Can you check my previous message https://github.com/react-native-google-signin/google-signin/issues/1244#issuecomment-1941043941
Does that answer?
I think my problem is related to this https://github.com/react-native-google-signin/google-signin/issues/1100 that's why I said I would have to use serverAuthCode to get refreshToken on the backend and refresh the idToken using refreshToken on the backend not on the android app.
Or please let me know if there is any workaround on the module to get the updated "idtoken". Can this be done using signInSilently?
Thanks.
I tried calling signInSilently after successful signin but it return SIGN_IN_REQUIRED on Android.
Below are the steps and code:
Expected Behavior
It should return user object.
Actual Behavior
It returns an error [Error: SIGN_IN_REQUIRED] on Android. Please note that this works fine on iOS GoogleSignin.signIn
Environment
@react-native-google-signin/google-signin version 11.1.4 Android OS 14
play-services-auth
googlePlayServicesAuthVersion = "19.2.0"