react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 876 forks source link

A little help understanding the ID field of user #1199

Closed nikitph closed 10 months ago

nikitph commented 10 months ago

we are using RN google SIgnin for our mobile apps and its working well. Thank you for the efforts in keeping this lib in a great state. In the next phase we are going to impl a web version of our app. We are using vanilla firebase js libs for that on the web app. In our experiments, we have found that the id field returned by firebase libs on the web is the one we can see on the firebase console.

With RN google Signin, the ID thats visible is a numeric one which we can't find a reference to. Digging into the native code i saw references to OID IDs which i presume mean openID references but i am unsure if thats what is accurately happening. Can someone please give a brief procedure as to how we can go from firebase UID --> numeric ID returned by this library? Thanks for the help

image

nikitph commented 10 months ago

If anyone runs into this the ID field corresponds to user.providerData[0].uid and not the uid under firebase console