0

I'm trying to access the user's uid from the user's email. I am coding using flutter, and am using Firebase Firestore.

1 Answers1

0

to get the uid of current user use FirebaseAuth.instance.currentUser.uid

Saad
  • 539
  • 2
  • 19
  • I tried this but it didn't work, because the user is not logged in. So basically users have to fill a two-screen sign up. The first one is for the email and password, and there i create the account, and the second one is for other info. So the user would not be logged in. Is there any other way? – jana Diriyeh Mar 11 '23 at 15:28
  • i don't know any other way but you can check this question https://stackoverflow.com/questions/63316778/how-to-get-firebase-uid-knowing-email-user it may help you – Saad Mar 11 '23 at 15:39