@insforge/react 0.6.1 → 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/README.md CHANGED
@@ -26,12 +26,6 @@ yarn add @insforge/react
26
26
  pnpm add @insforge/react
27
27
  ```
28
28
 
29
- **Required Peer Dependencies:**
30
-
31
- ```bash
32
- npm install react@^19.0.0 react-dom@^19.0.0
33
- ```
34
-
35
29
  #### Environment Variables
36
30
 
37
31
  ```bash
package/dist/index.cjs CHANGED
@@ -211,6 +211,7 @@ var InsforgeManager = class _InsforgeManager {
211
211
  avatarUrl: profile?.avatarUrl || ""
212
212
  };
213
213
  this.user = userData;
214
+ this.notifyListeners();
214
215
  if (this.config.onAuthChange) {
215
216
  this.config.onAuthChange(userData);
216
217
  }
@@ -223,7 +224,6 @@ var InsforgeManager = class _InsforgeManager {
223
224
  }
224
225
  }
225
226
  }
226
- this.notifyListeners();
227
227
  } else if (fallbackUser) {
228
228
  const userData = {
229
229
  id: fallbackUser.id || "",
@@ -232,10 +232,10 @@ var InsforgeManager = class _InsforgeManager {
232
232
  avatarUrl: ""
233
233
  };
234
234
  this.user = userData;
235
+ this.notifyListeners();
235
236
  if (this.config.onAuthChange) {
236
237
  this.config.onAuthChange(userData);
237
238
  }
238
- this.notifyListeners();
239
239
  }
240
240
  }
241
241
  // Business methods