简体   繁体   中英

Twitter and Facebook IDP having no E-mail in Firebase, how to get unique id

Using the FirebaseUI I have a question about Twitter and Facebook IDP.

Since this two can be signed in only using a phone number I was thinking,, In Firebase at the Authentication user panel if I have a user sign in with gmail, I can use that gmail(test1@gmail.com) as an internal id for the user since its considered a Trusted provider(right) Now when the above two bad boys sign in with phone number my question is, is it safe to use the:

FirebaseAuth.getInstance().getCurrentUser().getUid()

as a secure user identifier, if I never let the user delete and recreate his Firebase user account?

Note in Firebase I have set the "One account per email address"

Am I on the wrong path here!? How to think about this?

是的,UID可以安全地用作安全标识符 - 无论登录方法如何,它都是项目中每个用户的唯一标识。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM