Firebase Doesnt work! I suggest doing this inside authfile
Opened this issue · 0 comments
wann100 commented
try {
let user = await firebase.auth().createUserWithEmailAndPassword(email, password).then(function(data){
console.log('uid',data.user.uid)
firebase.database().ref(`/users/${data.user.uid}/userDetails`).set({
email,
phone,
firstname,
lastname,
displayName
});
console.log('database has been put up')
//Here if you want you can sign in the user
}).catch(function(error) {
//Handle error
});