I am making a post request (login).
it returns a token in the response header(Set-Auth).
How can extract and use the token in a request header?

login() {
if (this.loginForm.invalid) {
this.messageService.warning('You\'re missing something important', null);
return;
}
this.connecting.creating = true;
if (this.loginForm.valid) {
console.log(this.loginForm.value);
this.adminService.submitLogin(this.loginForm.value).subscribe(
(data: any) => {
this.messageService.success('Login Success', 'Success!');
this.router.navigate(['']).then();
},
error => {
this.messageService.error('Something went wrong', 'Error!');
this.connecting.creating = false;
this.connectingErrors.creating = true;
}
);
}
}