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