@umituz/react-native-auth 4.1.2 → 4.1.3
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.1.
|
|
3
|
+
"version": "4.1.3",
|
|
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",
|
|
@@ -64,6 +64,7 @@ export const useAccountManagement = (
|
|
|
64
64
|
}, [signOut]);
|
|
65
65
|
|
|
66
66
|
const deleteAccount = useCallback(async () => {
|
|
67
|
+
console.log("[useAccountManagement] deleteAccount called", { user: user?.uid });
|
|
67
68
|
if (!user) {
|
|
68
69
|
throw new Error("No user logged in");
|
|
69
70
|
}
|
|
@@ -75,12 +76,15 @@ export const useAccountManagement = (
|
|
|
75
76
|
setIsDeletingAccount(true);
|
|
76
77
|
|
|
77
78
|
try {
|
|
79
|
+
console.log("[useAccountManagement] Calling deleteCurrentUser...");
|
|
78
80
|
const result = await deleteCurrentUser({
|
|
79
81
|
autoReauthenticate: true,
|
|
80
82
|
onPasswordRequired: passwordHandler,
|
|
81
83
|
onGoogleReauthRequired: onReauthRequired,
|
|
82
84
|
});
|
|
83
85
|
|
|
86
|
+
console.log("[useAccountManagement] deleteCurrentUser result:", result);
|
|
87
|
+
|
|
84
88
|
if (!result.success) {
|
|
85
89
|
throw new Error(result.error?.message || "Failed to delete account");
|
|
86
90
|
}
|