@idsoftsource/initial-process 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -663,6 +663,9 @@ class UserDetailService {
663
663
  isInitialSetupCompleted() {
664
664
  return this.http.get(`${this.baseUrl}/IsInitialSetupCompleted`);
665
665
  }
666
+ getTokenDetail() {
667
+ return this.http.get(`${this.baseUrl}/GetTokenDetail`);
668
+ }
666
669
  /* ==============================
667
670
  UPDATE PROFILE
668
671
  ============================== */
@@ -7721,7 +7724,14 @@ class PreviewComponent {
7721
7724
  this.cacheProviderIdLocally(data?.value[0], data?.value[1]);
7722
7725
  this.companyDetailsSaved = true;
7723
7726
  this.companyNameError = null;
7724
- resolve();
7727
+ // Only after InitialSetUpProvider succeeds — refresh token details.
7728
+ this.userDetailService.getTokenDetail().subscribe({
7729
+ next: () => resolve(),
7730
+ error: (err) => {
7731
+ console.error('GetTokenDetail failed', err);
7732
+ resolve();
7733
+ }
7734
+ });
7725
7735
  }
7726
7736
  else {
7727
7737
  if (data.message === 'Provider name already exists') {