[IONIC 2 + FIREBASE 3 EMAIL AUTH]
Hey everyone, how can i insert a new user when he is creating a profile using his uid as his id in the table node?
Let’s say i have a userProfiles node and every new user needs to be saved there, i can use this.firebaseAuth.createUserWithEmailAndPassword(email, pswrd) to create a new and receive as response his unique id.
Can i insert the new user with his auth uid like
userProfiles{ uid(new user inserted with his uid as id) { data: data } }
?
Or is there another way to save a new person and know where in the database he is?