FirebaseAuth.getInstance().getCurrentUser().getUid() returning numbers in place of actual user id
See original GitHub issue[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:
FirebaseAuth.getInstance().getCurrentUser().getUid()
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
FirebaseAuth.getInstance().getCurrentUser().getUid ... - GitHub
"Using FirebaseAuth.getInstance().getCurrentUser().getUid() to get the user id of the user. This method is returning numbers instead of the ...
Read more >FirebaseAuth.getInstance().getUid() - How does it work?
Returns a user identifier as specified by the authentication provider. For example, if this object corresponds to a Google user, returns a ...
Read more >Manage Users in Firebase | Firebase Authentication - Google
Get the currently signed-in user There are some cases where getCurrentUser will return a non-null FirebaseUser but the underlying token is not valid....
Read more >Why is my currentUser == null in Firebase Auth? - Medium
Auth state seems binary: null or non-null (or is it?) The current user object ends up being null, even if the user previously...
Read more >Connecting Users and Object Data - LearnHowToProgram.com
To get the currently authorized user, we simply need to get the current instance of the FirebaseAuth object and then call the getCurrentUser()...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay thanks, I’ll update the tracking bug with that info
I’m glad to hear it - I’ll close this issue, then 😃