antaeus.keycloak.react 2.6.0 → 2.6.1

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.mjs CHANGED
@@ -435,11 +435,11 @@ function useTokenLifecycle(options) {
435
435
  if (hasCheckedOnStartup.current) {
436
436
  const hasUser = Boolean(auth.user);
437
437
  const hasRefreshToken = Boolean(auth.user?.refresh_token);
438
- if (auth.isLoading || !auth.isAuthenticated && (!supportsRefreshTokens || !hasUser || !hasRefreshToken)) {
438
+ if (!auth.isAuthenticated && (!supportsRefreshTokens || !hasUser || !hasRefreshToken)) {
439
439
  hasCheckedOnStartup.current = false;
440
440
  }
441
441
  }
442
- }, [auth.isAuthenticated, auth.isLoading, auth.user, supportsRefreshTokens]);
442
+ }, [auth.isAuthenticated, auth.user, supportsRefreshTokens]);
443
443
  useEffect(() => {
444
444
  if (auth.user && !auth.isLoading) {
445
445
  storeFirstLoginTime();