@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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|