X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fb3f4deaceade35ad36718ce814d6ff4d0cb996b..42ec7892e74f6d9d19f2f0155830565f447a861f:/src/store/auth/auth-action-session.ts diff --git a/src/store/auth/auth-action-session.ts b/src/store/auth/auth-action-session.ts index c871e147d1..ed2e18b2db 100644 --- a/src/store/auth/auth-action-session.ts +++ b/src/store/auth/auth-action-session.ts @@ -116,7 +116,7 @@ export const validateCluster = async (config: Config, useToken: string): const svc = createServices(config, { progressFn: () => { }, errorFn: () => { } }); setAuthorizationHeader(svc, saltedToken); - const user = await svc.authService.getUserDetails(); + const user = await svc.authService.getUserDetails(false); return { user, token: saltedToken, @@ -191,10 +191,11 @@ export const validateSessions = (useApiClient?: AxiosInstance) => places in Workbench2. */ await dispatch(validateSession(session, activeSession, useApiClient)); } catch (e) { - dispatch(snackbarActions.OPEN_SNACKBAR({ - message: e.message, - kind: SnackbarKind.ERROR - })); + // Don't do anything here. User may get + // spammed with multiple messages that are not + // helpful. They can see the individual + // errors by going to site manager and trying + // to toggle the session. } } }