I am making a small app in php and I am using firebase as a backend server for managing, authenticating users. I have a signup form with more than two fields, email and password(name, tel-number, location etc) but in the firebase documentation(code below), we can only register a user with email and password. So, my question is how I can save other information of user and later how I would retrieve that information?
firebase.auth().createUserWithEmailAndPassword(email, password).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});