Does anyone know how I can save a user's UserName in Firebase and retrieve it when they log in? I'm struggling to figure it out. Can someone help me with what code I need to add?
signUp(userEmail , userPassword){
firebase.auth().createUserWithEmailAndPassword(userEmail, userPassword).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});
signIn(userEmail , userPassword){
firebase.auth().signInWithEmailAndPassword(userEmail, userPassword).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});
I appreciate any assistance on this matter. Thank you.