X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/72ee613468c6dee53b98ed1469ce9781a942dbe9..ecd0b3c069eed7d411e3cec7d707b43ab6675081:/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();