16947: Don't show misleading session validate errors.
[arvados-workbench2.git] / src / services / auth-service / auth-service.ts
index 5e382fba85bb129d1cff1f3d587990e468f1b63b..9fc738bc5d96549b6ea12de6859543772876a205 100644 (file)
@@ -92,7 +92,7 @@ export class AuthService {
         window.location.assign(`${this.baseUrl || ""}/logout?return_to=${currentUrl}`);
     }
 
-    public getUserDetails = (): Promise<User> => {
+    public getUserDetails = (showErrors?: boolean): Promise<User> => {
         const reqId = uuid();
         this.actions.progressFn(reqId, true);
         return this.apiClient
@@ -114,7 +114,7 @@ export class AuthService {
             })
             .catch(e => {
                 this.actions.progressFn(reqId, false);
-                this.actions.errorFn(reqId, e);
+                this.actions.errorFn(reqId, e, showErrors);
                 throw e;
             });
     }