From a961c8c4b266f690131cb0f86bbcd37793d58ee9 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Tue, 5 Dec 2023 12:26:28 +1100
Subject: [PATCH] cleanup some code in two services

---
 src/app/authorisation.service.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/app/authorisation.service.ts b/src/app/authorisation.service.ts
index dceedfb..928fda4 100644
--- a/src/app/authorisation.service.ts
+++ b/src/app/authorisation.service.ts
@@ -245,10 +245,12 @@ private getSessionToken(apiserver: APIServer): Observable<any> {
    //this.agentContents.next([]);
    if (error.status == 0) {
      this.notifications.notify("A network error occured. Are you connected to the internet?")
+     return;
    }
    if (error.stats == 401) {
     this.sessionToken$.next(null);
     console.log('session expired, why hasnt it refreshed automatically?')
+    return;
    }
    this.notifications.notify("Error querying ssh agent");
  }
@@ -354,7 +356,8 @@ private getSessionToken(apiserver: APIServer): Observable<any> {
         return this.getCert(token, key, apiserver).pipe(
           map((cert) => [key,cert, token]))
         }),
-      tap(([key, cert, token]) => this.logout_sshauthz(token.sshauthzservice))
+      tap((v) => console.log('in keycert$ pipe line', v))
+      //tap(([key, cert, token]) => this.logout_sshauthz(token.sshauthzservice))
      )
 
 
-- 
GitLab