From 276af50119307b73027c939308ac6eabf4d86a8b Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Mon, 13 May 2019 14:37:33 -0400 Subject: [PATCH] 15064: If initializing auth fails, go back to login screen. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- src/store/auth/auth-action.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/auth/auth-action.ts b/src/store/auth/auth-action.ts index 1605e302..9d76e499 100644 --- a/src/store/auth/auth-action.ts +++ b/src/store/auth/auth-action.ts @@ -58,6 +58,8 @@ export const initAuth = (config: Config) => (dispatch: Dispatch, getState: () => dispatch(initSessions(services.authService, config, user)); dispatch(getUserDetails()).then((user: User) => { dispatch(authActions.INIT({ user, token })); + }).catch(() => { + logout()(dispatch, getState, services); }); } Object.keys(config.remoteHosts).map((k) => { -- 2.30.2