+ window.location.assign(`${API_HOST}/logout?return_to=${currentUrl}`);
+ }
+
+ public getUserDetails = () => (dispatch: Dispatch): Promise<void> => {
+ dispatch(actions.USER_DETAILS_REQUEST());
+ return serverApi
+ .get<UserDetailsResponse>('/users/current')
+ .then(resp => {
+ dispatch(actions.USER_DETAILS_SUCCESS(resp.data));
+ });
+ };
+
+ public getRootUuid() {
+ const uuid = this.getOwnerUuid();
+ const uuidParts = uuid ? uuid.split('-') : [];
+ return uuidParts.length > 1 ? `${uuidParts[0]}-${uuidParts[1]}` : undefined;