@umituz/react-native-firebase 1.13.25 → 1.13.27

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": "1.13.25",
3
+ "version": "1.13.27",
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",
@@ -52,4 +52,4 @@
52
52
  "README.md",
53
53
  "LICENSE"
54
54
  ]
55
- }
55
+ }
@@ -129,8 +129,8 @@ export async function deleteCurrentUser(
129
129
  });
130
130
  }
131
131
 
132
- // If reauthentication is required and autoReauthenticate is enabled
133
- if (requiresReauth && options.autoReauthenticate) {
132
+ // If reauthentication is required and autoReauthenticate is enabled OR password is provided
133
+ if (requiresReauth && (options.autoReauthenticate || options.password)) {
134
134
  if (__DEV__) {
135
135
  console.log("[deleteCurrentUser] Attempting auto-reauthentication...");
136
136
  }
@@ -18,7 +18,7 @@ function extractStoragePath(downloadUrl: string): string | null {
18
18
  }
19
19
 
20
20
  try {
21
- const urlObj = new URL(downloadUrl);
21
+ const urlObj = new URL(downloadUrl) as any;
22
22
  const pathMatch = urlObj.pathname.match(/\/o\/(.+)/);
23
23
 
24
24
  if (!pathMatch) {