@umituz/react-native-firebase 2.4.60 → 2.4.61
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 +1 -1
- package/src/domains/account-deletion/infrastructure/services/reauthentication.service.ts +3 -2
- package/src/domains/auth/infrastructure/services/google-auth.types.ts +2 -0
- package/src/domains/auth/infrastructure/services/google-oauth.service.ts +1 -3
- package/src/domains/auth/presentation/hooks/useGoogleOAuth.ts +1 -2
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.61",
|
|
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",
|
|
@@ -16,9 +16,10 @@ import { Platform } from "react-native";
|
|
|
16
16
|
* Lazy-loads expo-apple-authentication (optional peer dependency).
|
|
17
17
|
* Returns null if the package is not installed.
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
function getAppleAuthModule(): any {
|
|
19
|
+
function getAppleAuthModule(): typeof import("expo-apple-authentication") | null {
|
|
21
20
|
try {
|
|
21
|
+
// Dynamic require needed for optional peer dependency
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
22
23
|
return require("expo-apple-authentication");
|
|
23
24
|
} catch {
|
|
24
25
|
return null;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import type { Auth } from "firebase/auth";
|
|
8
|
-
import type
|
|
8
|
+
import { PLACEHOLDER_CLIENT_ID, type GoogleAuthResult } from "./google-auth.types";
|
|
9
9
|
import { googleAuthService } from "./google-auth.service";
|
|
10
10
|
|
|
11
11
|
// Conditional import - expo-web-browser is optional
|
|
@@ -32,8 +32,6 @@ export interface GoogleOAuthConfig {
|
|
|
32
32
|
androidClientId?: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const PLACEHOLDER_CLIENT_ID = "000000000000-placeholder.apps.googleusercontent.com";
|
|
36
|
-
|
|
37
35
|
function validateGoogleConfig(config?: GoogleOAuthConfig): boolean {
|
|
38
36
|
if (!config) return false;
|
|
39
37
|
return !!(
|
|
@@ -8,6 +8,7 @@ import { useState, useCallback, useEffect, useRef } from "react";
|
|
|
8
8
|
import { googleOAuthService } from "../../infrastructure/services/google-oauth.service";
|
|
9
9
|
import { getFirebaseAuth } from "../../infrastructure/config/FirebaseAuthClient";
|
|
10
10
|
import type { GoogleOAuthConfig } from "../../infrastructure/services/google-oauth.service";
|
|
11
|
+
import { PLACEHOLDER_CLIENT_ID } from "../../infrastructure/services/google-auth.types";
|
|
11
12
|
|
|
12
13
|
// Conditional import for expo-auth-session
|
|
13
14
|
interface AuthSessionResponse {
|
|
@@ -48,8 +49,6 @@ interface SocialAuthResult {
|
|
|
48
49
|
error?: string;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
const PLACEHOLDER_CLIENT_ID = "000000000000-placeholder.apps.googleusercontent.com";
|
|
52
|
-
|
|
53
52
|
/**
|
|
54
53
|
* Hook for Google OAuth authentication
|
|
55
54
|
* Requires expo-auth-session and expo-web-browser to be installed
|