You must have node users containing your users and other information about them.
The input is stored inside firebase, so you do not have direct access. Having node users allows you to access other user data (and can double-check whether an email address is being used).
users
uid_00001
name: "Frank"
email: "frank@wazmo.com"
fav_movie: "Airplane"
uid_00002
name: "Kato"
email: "kato@yipee.com"
fav_movie: "Pink Panther"
Using the structure above, you can simply request an email address, and if the match doesn't allow them to use it.
This is a very common practice, and there is a lot of information on how to handle users on the Firebase website.
Finish saving user data in this link
https://www.firebase.com/docs/ios/guide/user-auth.html
source
share