submitForm() {
this.blockButton = true;
this.authService.signIn(this.signInForm.getRawValue()).subscribe(
data => {
this.authService.setAuthorizationToken(data);
this.authService.updateCurrentMemberData();
},
error => {
this.blockButton = false;
},
() => {
this.router.navigate([this.authService.redirectUrl]);
}
);
}
submitSubject = BehaviorSubject(null)
@Output() auth = this.submitSubject.pipe(switchMap( _ => this.auth.signin(this.form.value))