@umituz/react-native-auth 4.2.5 → 4.2.7

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.2.5",
3
+ "version": "4.2.7",
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",
@@ -31,9 +31,6 @@ export interface AuthHandlersTranslations {
31
31
  deleteAccountError?: string;
32
32
  }
33
33
 
34
- /**
35
- * Hook that provides authentication-related handlers
36
- */
37
34
  export const useAuthHandlers = (appInfo: AuthHandlersAppInfo, translations?: AuthHandlersTranslations) => {
38
35
  const { signOut } = useAuth();
39
36
  const { showAuthModal } = useAuthModalStore();
@@ -68,16 +68,11 @@ export const usePasswordPromptNavigation = (
68
68
 
69
69
  try {
70
70
  if (typeof __DEV__ !== "undefined" && __DEV__) {
71
- console.log("[showPasswordPrompt] Navigating to PasswordPrompt with params:", { title, message });
72
- console.log("[showPasswordPrompt] AppNavigation.isReady():", AppNavigation.isReady());
73
- console.log("[showPasswordPrompt] AppNavigation.getCurrentRoute():", AppNavigation.getCurrentRoute());
74
- }
75
-
76
- if (!AppNavigation.isReady()) {
77
- throw new Error("Navigation is not ready");
71
+ console.log("[showPasswordPrompt] Navigating to PasswordPrompt");
78
72
  }
79
73
 
80
74
  AppNavigation.navigate('PasswordPrompt', params);
75
+
81
76
  if (typeof __DEV__ !== "undefined" && __DEV__) {
82
77
  console.log("[showPasswordPrompt] Navigation called successfully");
83
78
  }