Firebase Auth: Get users by email or phone number

后端 未结 4 2111
独厮守ぢ
独厮守ぢ 2021-01-16 18:24

I am building an Android App where I am using different ways for the user to register himself, like Email/Password, Phone, Google, Facebook, Twitter. I also

4条回答
  •  被撕碎了的回忆
    2021-01-16 18:53

    You can get user's email or phone number like this:

    FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
    String phoneNumber = user.getPhoneNumber();
    String email = user.getEmail();
    

提交回复
热议问题