@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/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.6",
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;