projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16947: Don't show misleading session validate errors.
[arvados.git]
/
src
/
services
/
auth-service
/
auth-service.ts
diff --git
a/src/services/auth-service/auth-service.ts
b/src/services/auth-service/auth-service.ts
index 5e382fba85bb129d1cff1f3d587990e468f1b63b..9fc738bc5d96549b6ea12de6859543772876a205 100644
(file)
--- a/
src/services/auth-service/auth-service.ts
+++ b/
src/services/auth-service/auth-service.ts
@@
-92,7
+92,7
@@
export class AuthService {
window.location.assign(`${this.baseUrl || ""}/logout?return_to=${currentUrl}`);
}
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
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);
})
.catch(e => {
this.actions.progressFn(reqId, false);
- this.actions.errorFn(reqId, e);
+ this.actions.errorFn(reqId, e
, showErrors
);
throw e;
});
}
throw e;
});
}