@insforge/react 0.6.2 → 0.6.3

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.
package/dist/index.js CHANGED
@@ -209,6 +209,7 @@ var InsforgeManager = class _InsforgeManager {
209
209
  avatarUrl: profile?.avatarUrl || ""
210
210
  };
211
211
  this.user = userData;
212
+ this.notifyListeners();
212
213
  if (this.config.onAuthChange) {
213
214
  this.config.onAuthChange(userData);
214
215
  }
@@ -221,7 +222,6 @@ var InsforgeManager = class _InsforgeManager {
221
222
  }
222
223
  }
223
224
  }
224
- this.notifyListeners();
225
225
  } else if (fallbackUser) {
226
226
  const userData = {
227
227
  id: fallbackUser.id || "",
@@ -230,10 +230,10 @@ var InsforgeManager = class _InsforgeManager {
230
230
  avatarUrl: ""
231
231
  };
232
232
  this.user = userData;
233
+ this.notifyListeners();
233
234
  if (this.config.onAuthChange) {
234
235
  this.config.onAuthChange(userData);
235
236
  }
236
- this.notifyListeners();
237
237
  }
238
238
  }
239
239
  // Business methods