@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.js
CHANGED
|
@@ -544,7 +544,9 @@ var InsforgeManager = class _InsforgeManager {
|
|
|
544
544
|
// Called after hydration to get complete user information beyond what's in cookies
|
|
545
545
|
async loadAuthState() {
|
|
546
546
|
try {
|
|
547
|
-
const {
|
|
547
|
+
const {
|
|
548
|
+
data: { session }
|
|
549
|
+
} = await this.sdk.auth.getCurrentSession();
|
|
548
550
|
if (!session) {
|
|
549
551
|
this.user = null;
|
|
550
552
|
if (this.config.onAuthChange) {
|