@umituz/react-native-auth 3.6.29 → 3.6.30
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": "3.6.
|
|
3
|
+
"version": "3.6.30",
|
|
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",
|
|
@@ -112,13 +112,18 @@ export function useAuthBottomSheet(params: UseAuthBottomSheetParams = {}) {
|
|
|
112
112
|
justConvertedFromAnonymous,
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
//
|
|
116
|
-
onAuthSuccess?.();
|
|
117
|
-
// Execute callback BEFORE closing to prevent clearPendingCallback from clearing it
|
|
118
|
-
executePendingCallback();
|
|
119
|
-
// Close modal and hide (without clearing callback again)
|
|
115
|
+
// Close modal and hide first
|
|
120
116
|
modalRef.current?.dismiss();
|
|
121
117
|
hideAuthModal();
|
|
118
|
+
// Notify auth success
|
|
119
|
+
onAuthSuccess?.();
|
|
120
|
+
// Execute callback with delay to ensure auth state has propagated
|
|
121
|
+
setTimeout(() => {
|
|
122
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
123
|
+
console.log("[useAuthBottomSheet] Executing pending callback after auth");
|
|
124
|
+
}
|
|
125
|
+
executePendingCallback();
|
|
126
|
+
}, 100);
|
|
122
127
|
}
|
|
123
128
|
|
|
124
129
|
prevIsAuthenticatedRef.current = isAuthenticated;
|