Merge branch 'master' into 16812-token-appears-in-the-download-URL
[arvados-workbench2.git] / src / store / auth / auth-action-session.ts
index c871e147d1c249f4f5f699196f90eb33598023ae..ed2e18b2db39079705805501ed2cc4cc9bb18be6 100644 (file)
@@ -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.
                     }
                 }
             }