-
Notifications
You must be signed in to change notification settings - Fork 602
FirebaseAuth.getInstance().getCurrentUser().getUid() returning numbers in place of actual user id #1927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found a few problems with this issue:
|
Hey gitton, I've filed b/169072058 to track this internally. This is really weird - if you stumble across any insight as to when this happens, that would be very useful. Thanks, |
One more question-- how often is this showing up in Crashlytics? |
Last 90 days we had seen this had affected around 150 users. @samhorlbeck |
Okay thanks, I'll update the tracking bug with that info |
Hi, My id is 1304770240, not this 10223852407640502. I used to use the version: com.google.firebase:firebase-auth:19.4.0. FirebaseAuth.getInstance().getCurrentUser().getUid() |
Ok, for the initial issue, this may be true for some users if they were created by the Admin SDK - you can set any UID there. I haven't been able to reproduce this issue at all, so if we can't find any more information on what types of users this is affecting or where those other IDs may be coming from, I don't really know how to proceed here. As for the issue you're talking about pberrospi, I'm not sure that that's the Firebase UID. It appears to perhaps be the Facebook UID, given that that photoURL is, in fact, a valid Facebook Photo URL. I'm unsure of how one would map to the other - if you have any steps on how to reproduce your issue, please let me know |
I don't know if the issue was corrected but currently it is working good and the issue is not happen again. Thanks. |
I'm glad to hear it - I'll close this issue, then :) |
[REQUIRED] Step 2: Describe your environment
com.google.firebase:firebase-auth:19.2.0
[REQUIRED] Step 3: Describe the problem
Using FirebaseAuth.getInstance().getCurrentUser().getUid() to get the user id of the user. This method is returning numbers instead of the actual user id in some case. Also, we find the users token is still valid but the user id returning from the SDK is of number example: 101528418014522522531
Steps to reproduce:
Sorry, not able to reproduce the issue and was got from Crashlytics for some users
Relevant Code:
The text was updated successfully, but these errors were encountered: