@insforge/react 1.0.2-dev.18 → 1.0.2-dev.19
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -565,7 +565,9 @@ var InsforgeManager = class _InsforgeManager {
|
|
|
565
565
|
// Called after hydration to get complete user information beyond what's in cookies
|
|
566
566
|
async loadAuthState() {
|
|
567
567
|
try {
|
|
568
|
-
const {
|
|
568
|
+
const {
|
|
569
|
+
data: { session }
|
|
570
|
+
} = await this.sdk.auth.getCurrentSession();
|
|
569
571
|
if (!session) {
|
|
570
572
|
this.user = null;
|
|
571
573
|
if (this.config.onAuthChange) {
|