I\'m relatively new to Firebase and trying to develop an app which requires users to give their name and surname in sign up page. But firebase createUserWithEmail method onl
Yes, you need to use the realtime database to store your user data. So after creating it you can call the setValue()
.
FIRAuth.auth()!.createUserWithEmail(email, password: pwd, completion: { authData, error in
if error == nil {
let userData = ["name": name,
"surname ": surname]
let ref = FIRDatabase.database().reference()
ref.child('users').child(authData!.uid).setValue(userData)
} else {
// handle error
}
})