@umituz/react-native-auth 4.3.15 → 4.3.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-auth",
3
- "version": "4.3.15",
3
+ "version": "4.3.16",
4
4
  "description": "Authentication service for React Native apps - Secure, type-safe, and production-ready. Provider-agnostic design with dependency injection, configurable validation, and comprehensive error handling.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -84,7 +84,8 @@ export function decrementRefCount(): { shouldCleanup: boolean; count: number } {
84
84
  state.unsubscribe !== null &&
85
85
  !state.cleanupInProgress;
86
86
 
87
- // If cleanup should happen, mark as in progress to prevent concurrent cleanup
87
+ // If cleanup should happen, mark as in progress to prevent concurrent cleanup.
88
+ // This flag is reset in resetListenerState() which MUST be called after cleanup.
88
89
  if (shouldCleanup) {
89
90
  state.cleanupInProgress = true;
90
91
  }