There is a create user form in the front end where the details of the form field including email and password will go into the 'Users' collection and also create user with email-id and password in firebase authentication .It worked fine but since yesterday in my device only the authentication is getting created but the details are not getting stored in the collection and the same tried on other device neither authentication is created not its stored in firestore collection.
Is there problem in my code or the cloud firestore is facing such problem?....since it was working before 2 days.
Code:
secondaryApp.auth().createUserWithEmailAndPassword(useremail , pswd).then(cred => {
return database.collection('Users').doc(cred.user.uid).set({
useremail : document.getElementById('useremail').value,
firstname : document.getElementById('fname').value,
lastname : document.getElementById('lname').value,
userSkillarr : firebase.firestore.FieldValue.arrayUnion(...[userskillset,newskillId]),
userRole : document.getElementById('userRole').value
});
})