In my firebase web application, when new users register with their email, I create a node under my email address under the root ref
But the problem is to use the push () method to add each new user to the database, each user is created using a unique key, as shown below
- users
---- ASFTU578FE
--------- user: user1@email.com
---- FDWWE36S46
--------- user: user2@email.com
---- WERSRTT23W
--------- user: user3@email.com
Now, how can I access the path for the user, since I do not know the unque key that will be created for each new user.
Is there a way to push a new user without a unique key, but a key that I know as user.displayName or user.email
source
share