@jmruthers/pace-core 0.5.10 → 0.5.11
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/{DataTable-4TQ6VBHW.js → DataTable-7LYDPZXT.js} +5 -5
- package/dist/{chunk-PCFG6WRC.js → chunk-7KDZXMES.js} +5 -5
- package/dist/{chunk-HXX35Q2M.js → chunk-7UEIZCST.js} +2 -2
- package/dist/{chunk-OCM3I4GY.js → chunk-AMOT5ZSZ.js} +3 -3
- package/dist/{chunk-PVMYVQSM.js → chunk-CMXBNDPM.js} +3 -3
- package/dist/{chunk-K6B7BLSE.js → chunk-DKDTXS5Q.js} +2 -2
- package/dist/{chunk-GNTALZV3.js → chunk-DV2Z3RBQ.js} +3 -3
- package/dist/{chunk-AEMAAWUZ.js → chunk-JV73V2W5.js} +4 -4
- package/dist/{chunk-CTV3NKPM.js → chunk-ROHDZOP7.js} +3 -3
- package/dist/{chunk-QKHFMQ5R.js → chunk-RQ7Y2CN6.js} +30 -5
- package/dist/chunk-RQ7Y2CN6.js.map +1 -0
- package/dist/{chunk-HD7PYDUV.js → chunk-XYRRPUYV.js} +2 -2
- package/dist/components.js +7 -7
- package/dist/hooks.js +4 -4
- package/dist/index.js +10 -10
- package/dist/providers.js +3 -3
- package/dist/rbac/index.js +5 -5
- package/dist/utils.js +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- package/docs/api/classes/InvalidScopeError.md +1 -1
- package/docs/api/classes/MissingUserContextError.md +1 -1
- package/docs/api/classes/OrganisationContextRequiredError.md +1 -1
- package/docs/api/classes/PermissionDeniedError.md +1 -1
- package/docs/api/classes/PublicErrorBoundary.md +1 -1
- package/docs/api/classes/RBACAuditManager.md +1 -1
- package/docs/api/classes/RBACCache.md +1 -1
- package/docs/api/classes/RBACEngine.md +1 -1
- package/docs/api/classes/RBACError.md +1 -1
- package/docs/api/classes/RBACNotInitializedError.md +1 -1
- package/docs/api/classes/SecureSupabaseClient.md +1 -1
- package/docs/api/interfaces/AggregateConfig.md +1 -1
- package/docs/api/interfaces/ButtonProps.md +1 -1
- package/docs/api/interfaces/CardProps.md +1 -1
- package/docs/api/interfaces/ColorPalette.md +1 -1
- package/docs/api/interfaces/ColorShade.md +1 -1
- package/docs/api/interfaces/DataAccessRecord.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +1 -1
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.md +1 -1
- package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
- package/docs/api/interfaces/EventContextType.md +1 -1
- package/docs/api/interfaces/EventLogoProps.md +1 -1
- package/docs/api/interfaces/EventProviderProps.md +1 -1
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadProps.md +1 -1
- package/docs/api/interfaces/FooterProps.md +1 -1
- package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
- package/docs/api/interfaces/InputProps.md +1 -1
- package/docs/api/interfaces/LabelProps.md +1 -1
- package/docs/api/interfaces/LoginFormProps.md +1 -1
- package/docs/api/interfaces/NavigationAccessRecord.md +1 -1
- package/docs/api/interfaces/NavigationContextType.md +1 -1
- package/docs/api/interfaces/NavigationGuardProps.md +1 -1
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/NavigationProviderProps.md +1 -1
- package/docs/api/interfaces/Organisation.md +1 -1
- package/docs/api/interfaces/OrganisationContextType.md +1 -1
- package/docs/api/interfaces/OrganisationMembership.md +1 -1
- package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
- package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
- package/docs/api/interfaces/PaceAppLayoutProps.md +1 -1
- package/docs/api/interfaces/PaceLoginPageProps.md +1 -1
- package/docs/api/interfaces/PageAccessRecord.md +1 -1
- package/docs/api/interfaces/PagePermissionContextType.md +1 -1
- package/docs/api/interfaces/PagePermissionGuardProps.md +1 -1
- package/docs/api/interfaces/PagePermissionProviderProps.md +1 -1
- package/docs/api/interfaces/PaletteData.md +1 -1
- package/docs/api/interfaces/PermissionEnforcerProps.md +1 -1
- package/docs/api/interfaces/PublicErrorBoundaryProps.md +1 -1
- package/docs/api/interfaces/PublicErrorBoundaryState.md +1 -1
- package/docs/api/interfaces/PublicLoadingSpinnerProps.md +1 -1
- package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
- package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/RBACConfig.md +1 -1
- package/docs/api/interfaces/RBACContextType.md +1 -1
- package/docs/api/interfaces/RBACLogger.md +1 -1
- package/docs/api/interfaces/RBACProviderProps.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterContextType.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterProps.md +1 -1
- package/docs/api/interfaces/RouteAccessRecord.md +1 -1
- package/docs/api/interfaces/RouteConfig.md +1 -1
- package/docs/api/interfaces/SecureDataContextType.md +1 -1
- package/docs/api/interfaces/SecureDataProviderProps.md +1 -1
- package/docs/api/interfaces/StorageConfig.md +1 -1
- package/docs/api/interfaces/StorageFileInfo.md +1 -1
- package/docs/api/interfaces/StorageFileMetadata.md +1 -1
- package/docs/api/interfaces/StorageListOptions.md +1 -1
- package/docs/api/interfaces/StorageListResult.md +1 -1
- package/docs/api/interfaces/StorageUploadOptions.md +1 -1
- package/docs/api/interfaces/StorageUploadResult.md +1 -1
- package/docs/api/interfaces/StorageUrlOptions.md +1 -1
- package/docs/api/interfaces/StyleImport.md +1 -1
- package/docs/api/interfaces/ToastActionElement.md +1 -1
- package/docs/api/interfaces/ToastProps.md +1 -1
- package/docs/api/interfaces/UnifiedAuthContextType.md +1 -1
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UserEventAccess.md +1 -1
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +2 -2
- package/package.json +1 -1
- package/src/providers/AuthProvider.tsx +34 -5
- package/dist/chunk-QKHFMQ5R.js.map +0 -1
- /package/dist/{DataTable-4TQ6VBHW.js.map → DataTable-7LYDPZXT.js.map} +0 -0
- /package/dist/{chunk-PCFG6WRC.js.map → chunk-7KDZXMES.js.map} +0 -0
- /package/dist/{chunk-HXX35Q2M.js.map → chunk-7UEIZCST.js.map} +0 -0
- /package/dist/{chunk-OCM3I4GY.js.map → chunk-AMOT5ZSZ.js.map} +0 -0
- /package/dist/{chunk-PVMYVQSM.js.map → chunk-CMXBNDPM.js.map} +0 -0
- /package/dist/{chunk-K6B7BLSE.js.map → chunk-DKDTXS5Q.js.map} +0 -0
- /package/dist/{chunk-GNTALZV3.js.map → chunk-DV2Z3RBQ.js.map} +0 -0
- /package/dist/{chunk-AEMAAWUZ.js.map → chunk-JV73V2W5.js.map} +0 -0
- /package/dist/{chunk-CTV3NKPM.js.map → chunk-ROHDZOP7.js.map} +0 -0
- /package/dist/{chunk-HD7PYDUV.js.map → chunk-XYRRPUYV.js.map} +0 -0
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
useDataTableContext,
|
|
33
33
|
usePluginRegistry,
|
|
34
34
|
useStateManager
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-ROHDZOP7.js";
|
|
36
|
+
import "./chunk-AMOT5ZSZ.js";
|
|
37
37
|
import "./chunk-GWSBHC4J.js";
|
|
38
38
|
import "./chunk-7BNPOCLL.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-7UEIZCST.js";
|
|
40
40
|
import {
|
|
41
41
|
DataChunkManager,
|
|
42
42
|
SearchIndex,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
throttle,
|
|
49
49
|
useDataTablePerformance
|
|
50
50
|
} from "./chunk-SS3E6QLB.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-RQ7Y2CN6.js";
|
|
52
52
|
import "./chunk-YDJW5XTN.js";
|
|
53
53
|
import "./chunk-WJARTBCT.js";
|
|
54
54
|
import "./chunk-PLDDJCW6.js";
|
|
@@ -96,4 +96,4 @@ export {
|
|
|
96
96
|
usePluginRegistry,
|
|
97
97
|
useStateManager
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=DataTable-
|
|
99
|
+
//# sourceMappingURL=DataTable-7LYDPZXT.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SelectSeparator,
|
|
16
16
|
SelectTrigger,
|
|
17
17
|
SelectValue
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ROHDZOP7.js";
|
|
19
19
|
import {
|
|
20
20
|
isPermitted
|
|
21
21
|
} from "./chunk-GWSBHC4J.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
EventProvider_exports,
|
|
24
24
|
init_EventProvider,
|
|
25
25
|
useEvents
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7UEIZCST.js";
|
|
27
27
|
import {
|
|
28
28
|
PublicErrorBoundary,
|
|
29
29
|
useAppConfig,
|
|
30
30
|
usePublicEventLogo,
|
|
31
31
|
usePublicPageContext
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DKDTXS5Q.js";
|
|
33
33
|
import {
|
|
34
34
|
Button,
|
|
35
35
|
Dialog,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
init_UnifiedAuthProvider,
|
|
46
46
|
useOrganisations,
|
|
47
47
|
useUnifiedAuth
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
49
49
|
import {
|
|
50
50
|
LoadingSpinner
|
|
51
51
|
} from "./chunk-CDQ3PX7L.js";
|
|
@@ -3290,4 +3290,4 @@ export {
|
|
|
3290
3290
|
PublicPageDiagnostic,
|
|
3291
3291
|
PublicPageContextChecker
|
|
3292
3292
|
};
|
|
3293
|
-
//# sourceMappingURL=chunk-
|
|
3293
|
+
//# sourceMappingURL=chunk-7KDZXMES.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
init_UnifiedAuthProvider,
|
|
4
4
|
useOrganisations,
|
|
5
5
|
useUnifiedAuth
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
7
7
|
import {
|
|
8
8
|
DebugLogger,
|
|
9
9
|
init_debugLogger,
|
|
@@ -312,4 +312,4 @@ export {
|
|
|
312
312
|
EventProvider_exports,
|
|
313
313
|
init_EventProvider
|
|
314
314
|
};
|
|
315
|
-
//# sourceMappingURL=chunk-
|
|
315
|
+
//# sourceMappingURL=chunk-7UEIZCST.js.map
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
init_EventProvider,
|
|
9
9
|
useEvents
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7UEIZCST.js";
|
|
11
11
|
import {
|
|
12
12
|
init_OrganisationProvider,
|
|
13
13
|
init_UnifiedAuthProvider,
|
|
14
14
|
useOrganisations,
|
|
15
15
|
useUnifiedAuth
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
17
17
|
|
|
18
18
|
// src/rbac/hooks/useRBAC.ts
|
|
19
19
|
init_UnifiedAuthProvider();
|
|
@@ -430,4 +430,4 @@ export {
|
|
|
430
430
|
useHasAllPermissions,
|
|
431
431
|
useCachedPermissions
|
|
432
432
|
};
|
|
433
|
-
//# sourceMappingURL=chunk-
|
|
433
|
+
//# sourceMappingURL=chunk-AMOT5ZSZ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePublicPageContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DKDTXS5Q.js";
|
|
4
4
|
import {
|
|
5
5
|
init_OrganisationProvider,
|
|
6
6
|
init_UnifiedAuthProvider,
|
|
7
7
|
useOrganisations,
|
|
8
8
|
useUnifiedAuth
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
10
10
|
|
|
11
11
|
// src/hooks/useOrganisationPermissions.ts
|
|
12
12
|
init_OrganisationProvider();
|
|
@@ -519,4 +519,4 @@ export {
|
|
|
519
519
|
generatePublicRoutePath,
|
|
520
520
|
extractEventCodeFromPath
|
|
521
521
|
};
|
|
522
|
-
//# sourceMappingURL=chunk-
|
|
522
|
+
//# sourceMappingURL=chunk-CMXBNDPM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_UnifiedAuthProvider,
|
|
3
3
|
useUnifiedAuth
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
5
5
|
|
|
6
6
|
// src/components/PublicLayout/PublicErrorBoundary.tsx
|
|
7
7
|
import React, { Component } from "react";
|
|
@@ -385,4 +385,4 @@ export {
|
|
|
385
385
|
clearPublicLogoCache,
|
|
386
386
|
getPublicLogoCacheStats
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=chunk-
|
|
388
|
+
//# sourceMappingURL=chunk-DKDTXS5Q.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_EventProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7UEIZCST.js";
|
|
4
4
|
import {
|
|
5
5
|
init_AuthProvider,
|
|
6
6
|
init_InactivityProvider,
|
|
7
7
|
init_OrganisationProvider,
|
|
8
8
|
init_UnifiedAuthProvider
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
10
10
|
|
|
11
11
|
// src/providers/index.ts
|
|
12
12
|
init_EventProvider();
|
|
@@ -14,4 +14,4 @@ init_OrganisationProvider();
|
|
|
14
14
|
init_UnifiedAuthProvider();
|
|
15
15
|
init_AuthProvider();
|
|
16
16
|
init_InactivityProvider();
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-DV2Z3RBQ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAccessLevel,
|
|
3
3
|
useCan
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AMOT5ZSZ.js";
|
|
5
5
|
import {
|
|
6
6
|
OrganisationContextRequiredError,
|
|
7
7
|
RBACCache,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
} from "./chunk-GWSBHC4J.js";
|
|
11
11
|
import {
|
|
12
12
|
useSecureDataAccess
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XYRRPUYV.js";
|
|
14
14
|
import {
|
|
15
15
|
init_RBACProvider,
|
|
16
16
|
init_UnifiedAuthProvider,
|
|
17
17
|
useUnifiedAuth
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
19
19
|
import {
|
|
20
20
|
getCurrentAppName,
|
|
21
21
|
init_appNameResolver
|
|
@@ -1926,4 +1926,4 @@ export {
|
|
|
1926
1926
|
getPermissionsForRole,
|
|
1927
1927
|
ALL_PERMISSIONS
|
|
1928
1928
|
};
|
|
1929
|
-
//# sourceMappingURL=chunk-
|
|
1929
|
+
//# sourceMappingURL=chunk-JV73V2W5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AMOT5ZSZ.js";
|
|
4
4
|
import {
|
|
5
5
|
useDataTablePerformance
|
|
6
6
|
} from "./chunk-SS3E6QLB.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
init_Button,
|
|
15
15
|
init_UnifiedAuthProvider,
|
|
16
16
|
useUnifiedAuth
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RQ7Y2CN6.js";
|
|
18
18
|
import {
|
|
19
19
|
cn,
|
|
20
20
|
init_cn
|
|
@@ -5463,4 +5463,4 @@ export {
|
|
|
5463
5463
|
GroupHeader,
|
|
5464
5464
|
EditableRow
|
|
5465
5465
|
};
|
|
5466
|
-
//# sourceMappingURL=chunk-
|
|
5466
|
+
//# sourceMappingURL=chunk-ROHDZOP7.js.map
|
|
@@ -50,21 +50,35 @@ function AuthProvider({ children, supabaseClient }) {
|
|
|
50
50
|
}, []);
|
|
51
51
|
useEffect(() => {
|
|
52
52
|
if (!supabaseClient) return;
|
|
53
|
-
const loadInitialUser = async () => {
|
|
53
|
+
const loadInitialUser = async (retryCount = 0) => {
|
|
54
54
|
try {
|
|
55
|
+
DebugLogger.log("AuthProvider", `Loading initial user (attempt ${retryCount + 1})...`);
|
|
55
56
|
const response = await supabaseClient.auth.getUser();
|
|
56
57
|
const { data: { user: initialUser }, error } = response || { data: { user: null }, error: null };
|
|
57
58
|
if (error) {
|
|
58
59
|
console.warn("Failed to get initial user:", error);
|
|
60
|
+
if (retryCount === 0 && (error.message?.includes("network") || error.message?.includes("timeout"))) {
|
|
61
|
+
console.log("AuthProvider: Retrying initial user load due to network error...");
|
|
62
|
+
setTimeout(() => loadInitialUser(1), 1e3);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
59
65
|
setAuthLoading(false);
|
|
60
66
|
return;
|
|
61
67
|
}
|
|
62
68
|
if (initialUser) {
|
|
69
|
+
DebugLogger.log("AuthProvider", "Initial user loaded successfully:", initialUser.email);
|
|
63
70
|
setUser(initialUser);
|
|
71
|
+
} else {
|
|
72
|
+
DebugLogger.log("AuthProvider", "No initial user found");
|
|
64
73
|
}
|
|
65
74
|
setAuthLoading(false);
|
|
66
75
|
} catch (error) {
|
|
67
76
|
console.error("Error loading initial user:", error);
|
|
77
|
+
if (retryCount === 0 && (error instanceof Error && (error.message.includes("network") || error.message.includes("timeout")))) {
|
|
78
|
+
console.log("AuthProvider: Retrying initial user load due to network error...");
|
|
79
|
+
setTimeout(() => loadInitialUser(1), 1e3);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
68
82
|
setAuthLoading(false);
|
|
69
83
|
}
|
|
70
84
|
};
|
|
@@ -82,10 +96,11 @@ function AuthProvider({ children, supabaseClient }) {
|
|
|
82
96
|
}
|
|
83
97
|
const timeoutId = setTimeout(() => {
|
|
84
98
|
if (authLoading) {
|
|
85
|
-
console.warn("AuthProvider: Auth loading timeout reached");
|
|
99
|
+
console.warn("AuthProvider: Auth loading timeout reached - this may indicate a network issue or slow auth response");
|
|
86
100
|
setAuthLoading(false);
|
|
101
|
+
setAuthError(new AuthError("Authentication timeout - please try refreshing the page"));
|
|
87
102
|
}
|
|
88
|
-
},
|
|
103
|
+
}, 1e4);
|
|
89
104
|
try {
|
|
90
105
|
DebugLogger.log("AuthProvider", "Setting up auth state change listener...");
|
|
91
106
|
const authStateChange = supabaseClient.auth.onAuthStateChange(
|
|
@@ -99,13 +114,23 @@ function AuthProvider({ children, supabaseClient }) {
|
|
|
99
114
|
setUser(null);
|
|
100
115
|
setAuthLoading(false);
|
|
101
116
|
setAuthError(null);
|
|
102
|
-
} else {
|
|
117
|
+
} else if (event === "SIGNED_IN" || event === "TOKEN_REFRESHED") {
|
|
118
|
+
DebugLogger.log("AuthProvider", "User signed in or token refreshed");
|
|
103
119
|
setSession(session2);
|
|
104
120
|
setUser(session2?.user ?? null);
|
|
105
121
|
setAuthLoading(false);
|
|
106
122
|
if (session2) {
|
|
107
123
|
setAuthError(null);
|
|
108
124
|
}
|
|
125
|
+
} else {
|
|
126
|
+
if (session2) {
|
|
127
|
+
setSession(session2);
|
|
128
|
+
setUser(session2.user ?? null);
|
|
129
|
+
setAuthLoading(false);
|
|
130
|
+
if (session2) {
|
|
131
|
+
setAuthError(null);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
109
134
|
}
|
|
110
135
|
} catch (error) {
|
|
111
136
|
console.warn("[AuthProvider] Error in auth state change handler:", error);
|
|
@@ -7754,4 +7779,4 @@ lodash/lodash.js:
|
|
|
7754
7779
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
7755
7780
|
*)
|
|
7756
7781
|
*/
|
|
7757
|
-
//# sourceMappingURL=chunk-
|
|
7782
|
+
//# sourceMappingURL=chunk-RQ7Y2CN6.js.map
|