@clerk/clerk-react 5.53.6 → 5.53.7-snapshot.v20251105162613
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/{chunk-W6LUQR6F.mjs → chunk-24QLBVPC.mjs} +2 -2
- package/dist/{chunk-RIHPNBRX.mjs → chunk-HKZ5GFZZ.mjs} +2 -2
- package/dist/{chunk-GS2PUW25.mjs → chunk-QOIGX5WX.mjs} +3 -3
- package/dist/chunk-QOIGX5WX.mjs.map +1 -0
- package/dist/experimental.js +2 -2
- package/dist/experimental.js.map +1 -1
- package/dist/experimental.mjs +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +2 -2
- package/package.json +4 -4
- package/dist/chunk-GS2PUW25.mjs.map +0 -1
- /package/dist/{chunk-W6LUQR6F.mjs.map → chunk-24QLBVPC.mjs.map} +0 -0
- /package/dist/{chunk-RIHPNBRX.mjs.map → chunk-HKZ5GFZZ.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1184,11 +1184,11 @@ var useAuth = (initialAuthStateOrOptions = {}) => {
|
|
|
1184
1184
|
const { treatPendingAsSignedOut, ...rest } = initialAuthStateOrOptions != null ? initialAuthStateOrOptions : {};
|
|
1185
1185
|
const initialAuthState = rest;
|
|
1186
1186
|
const authContextFromHook = useAuthContext();
|
|
1187
|
+
const isomorphicClerk = useIsomorphicClerkContext();
|
|
1187
1188
|
let authContext = authContextFromHook;
|
|
1188
|
-
if (authContext.sessionId === void 0 && authContext.userId === void 0) {
|
|
1189
|
+
if (!isomorphicClerk.loaded && authContext.sessionId === void 0 && authContext.userId === void 0) {
|
|
1189
1190
|
authContext = initialAuthState != null ? initialAuthState : {};
|
|
1190
1191
|
}
|
|
1191
|
-
const isomorphicClerk = useIsomorphicClerkContext();
|
|
1192
1192
|
const getToken = (0, import_react16.useCallback)(createGetToken(isomorphicClerk), [isomorphicClerk]);
|
|
1193
1193
|
const signOut = (0, import_react16.useCallback)(createSignOut(isomorphicClerk), [isomorphicClerk]);
|
|
1194
1194
|
(_a = isomorphicClerk.telemetry) == null ? void 0 : _a.record((0, import_telemetry.eventMethodCalled)("useAuth", { treatPendingAsSignedOut }));
|
|
@@ -1851,7 +1851,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
var SDK_METADATA = {
|
|
1853
1853
|
name: "@clerk/clerk-react",
|
|
1854
|
-
version: "5.53.
|
|
1854
|
+
version: "5.53.7-snapshot.v20251105162613",
|
|
1855
1855
|
environment: process.env.NODE_ENV
|
|
1856
1856
|
};
|
|
1857
1857
|
var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
|