From 1a7b4bc4b105bf662d59be54e27bf38efdec3aff Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Tue, 5 Dec 2023 13:07:06 +1100 Subject: [PATCH] cleanup some code in two services --- src/app/authorisation.service.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/authorisation.service.ts b/src/app/authorisation.service.ts index 3905ed9..18a7ded 100644 --- a/src/app/authorisation.service.ts +++ b/src/app/authorisation.service.ts @@ -155,6 +155,7 @@ public logout() { } let sessionToken = this.sessionToken$.value; sessionStorage.removeItem('keys'); + this.availableKeys$.next([]); return this.killAgent(apiserver, sessionToken).pipe( tap((v)=>window.localStorage.removeItem('strudel2_session')), switchMap((v) => this.getSessionToken(apiserver)) @@ -305,12 +306,7 @@ private getSessionToken(apiserver: APIServer): Observable<any> { 'Authorization': `Bearer ${sessionToken}` }); let options = { headers: headers, withCredentials: true}; - return this.http.delete<any>(apiserver.tes+'/sshagent',options) - .pipe( - catchError(this.handleError(anyvar)), - switchMap((v) => this.updateAgentContents(apiserver, sessionToken)), - catchError((e) => { return of([])})) } -- GitLab