@umituz/react-native-firebase 2.4.12 → 2.4.13
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-firebase",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.13",
|
|
4
4
|
"description": "Unified Firebase package for React Native apps - Auth and Firestore services using Firebase JS SDK (no native modules).",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -7,6 +7,7 @@ import { deleteUser, type User } from "firebase/auth";
|
|
|
7
7
|
|
|
8
8
|
declare const __DEV__: boolean;
|
|
9
9
|
import { getFirebaseAuth } from "../../../auth/infrastructure/config/FirebaseAuthClient";
|
|
10
|
+
import { markUserDeleted } from "../../../auth/infrastructure/services/user-document.service";
|
|
10
11
|
import {
|
|
11
12
|
getUserAuthProvider,
|
|
12
13
|
reauthenticateWithApple,
|
|
@@ -113,6 +114,11 @@ export async function deleteCurrentUser(
|
|
|
113
114
|
};
|
|
114
115
|
}
|
|
115
116
|
|
|
117
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
118
|
+
console.log("[deleteCurrentUser] Marking user as deleted in Firestore");
|
|
119
|
+
}
|
|
120
|
+
await markUserDeleted(user.uid);
|
|
121
|
+
|
|
116
122
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
117
123
|
console.log("[deleteCurrentUser] Calling deleteUser");
|
|
118
124
|
}
|
|
@@ -275,6 +281,11 @@ async function attemptReauth(user: User, options: AccountDeletionOptions, origin
|
|
|
275
281
|
};
|
|
276
282
|
}
|
|
277
283
|
|
|
284
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
285
|
+
console.log("[attemptReauth] Marking user as deleted in Firestore");
|
|
286
|
+
}
|
|
287
|
+
await markUserDeleted(currentUser.uid);
|
|
288
|
+
|
|
278
289
|
await deleteUser(currentUser);
|
|
279
290
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
280
291
|
console.log("[attemptReauth] deleteUser successful after reauth");
|