He estado intentar atrapar un error que me aparece en consola que esta relacionado con el método de signUpWithEmailandPassword(), he tratado de utilizar try and catch o usando los mismos metodos de then/catch hasta promise(reject,resolve)
Código:
return this.afat.signInWithEmailAndPassword(correo,pass)
.then(()=> {this.router.navigate(['home'])}, err => {
console.log('error');
}).catch((error) => {
console.log(error);
console.log('oops');
});
Error que me arroja en consola(El cual no quiero que muestre)
core.js:6498
ERROR Error: Uncaught (in promise): FirebaseError: Firebase: There is no user record corresponding to this identifier. The user may have been deleted. (auth/user-not-found).
FirebaseError: Firebase: There is no user record corresponding to this identifier. The user may have been deleted. (auth/user-not-found).
console.log(error)
this.afat
? Me imagino que hay unpipe
que contiene uncatchError