@umituz/react-native-auth 2.6.15 → 2.6.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": "2.6.15",
3
+ "version": "2.6.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",
@@ -100,6 +100,22 @@ export function useAuthState(): UseAuthStateResult {
100
100
  };
101
101
  }, []);
102
102
 
103
+ // Debug logging in development
104
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
105
+ console.log("[useAuthState] Current state:", {
106
+ hasUser: !!user,
107
+ userUid: user?.uid,
108
+ userEmail: user?.email,
109
+ userIsAnonymous: user?.isAnonymous,
110
+ isAuthenticated,
111
+ isGuest,
112
+ loading,
113
+ firebaseLoading,
114
+ hasFirebaseUser: !!firebaseUser,
115
+ firebaseUserUid: firebaseUser?.uid,
116
+ });
117
+ }
118
+
103
119
  return {
104
120
  user,
105
121
  isAuthenticated,