How to search / access user data?

I want to warn users who register that their email address selection is already in our database; how can I compare their (desired) email with the users in my list of users until (so far) they register? Where exactly are users stored and how can I access tatt datanode?

+4
source share
1 answer

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

+5
source

Source: https://habr.com/ru/post/1616064/


All Articles