From 6af39c41195cab3dabcfccb5d2f26b17cbb911e6 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 26 Oct 2021 17:56:21 -0400 Subject: [PATCH] Correct variable type --- src/app/Shared/Services/Login.service.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Shared/Services/Login.service.tsx b/src/app/Shared/Services/Login.service.tsx index 032d96417..242531de3 100644 --- a/src/app/Shared/Services/Login.service.tsx +++ b/src/app/Shared/Services/Login.service.tsx @@ -131,7 +131,7 @@ export class LoginService { getHeaders(): Observable { const authorization = combineLatest([this.getToken(), this.getAuthMethod()]) .pipe( - map((parts: [string, string]) => this.getAuthHeaders(parts[0], parts[1])), + map((parts: [string, AuthMethod]) => this.getAuthHeaders(parts[0], parts[1])), first(), ); return combineLatest([authorization, this.target.target()]) @@ -155,7 +155,7 @@ export class LoginService { return this.token.asObservable(); } - getAuthMethod(): Observable { + getAuthMethod(): Observable { return this.authMethod.asObservable(); }