X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f0a64666816383d2641d5fa7ea22019441ac4464..6318db42202cc63f179dfca59e1793dab9b22404:/src/store/auth/auth-middleware.ts diff --git a/src/store/auth/auth-middleware.ts b/src/store/auth/auth-middleware.ts index 76f85984b0..6eef5e5e16 100644 --- a/src/store/auth/auth-middleware.ts +++ b/src/store/auth/auth-middleware.ts @@ -30,6 +30,7 @@ export const authMiddleware = (services: ServiceRepository): Middleware => store setAuthorizationHeader(services, state.auth.apiToken); } else { services.authService.removeApiToken(); + services.authService.removeSessions(); removeAuthorizationHeader(services); } @@ -64,6 +65,7 @@ export const authMiddleware = (services: ServiceRepository): Middleware => store services.linkAccountService.removeAccountToLink(); } services.authService.removeApiToken(); + services.authService.removeSessions(); services.authService.removeUser(); removeAuthorizationHeader(services); services.authService.logout();