Having trouble identifying the issue in this TypeScript code snippet.
Error reported on line 5, ".subscribe((response: { Token: string }) => {".
login() {
this.httpClient
.post('http://localhost:4000/signin', this.loginForm.value)
.subscribe((response: { Token: string }) => {
if (response.Token === undefined) {
this.authenticationFailed = true;
} else {
this.router.navigate(['customer']);
}
});
}
}