Я хочу скрыть эту ошибку HTTP при входе с неверными учетными данными. Вот мой эффект, и могу ли я обработать сообщение об ошибке самостоятельно?
@Effect()
authSignin = this.actions$.pipe(
ofType(AuthActions.TRY_SIGNIN),
tap(() => console.log("signin effect")),
map((action: AuthActions.TrySignup) => {
return action.payload;
}),
switchMap((authData: { username: string; password: string }) => {
return from(
firebase
.auth()
.signInWithEmailAndPassword(authData.username, authData.password)
).pipe(
switchMap(() => {
return from(firebase.auth().currentUser.getIdToken());
}),
mergeMap((token: string) => {
this.router.navigate(["/"]);
return [
{
type: AuthActions.SIGNIN
},
{
type: AuthActions.SET_TOKEN,
payload: token
}
];
}),
catchError(error =>
Observable.of(new AuthActions.AuthError(error.message))
)
);
}),
catchError(error => Observable.of(new AuthActions.AuthError(error.message)))
);
Консольотобразить ошибку