@umituz/react-native-firebase 1.14.0 → 1.14.2
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/auth/index.ts +1 -0
- package/src/auth/infrastructure/config/FirebaseAuthClient.ts +1 -1
- package/src/auth/infrastructure/services/google-auth.service.ts +1 -1
- package/src/firestore/infrastructure/config/FirestoreClient.ts +1 -1
- package/src/infrastructure/config/base/ServiceClientSingleton.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-firebase",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
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",
|
package/src/auth/index.ts
CHANGED
|
@@ -144,6 +144,7 @@ export { useGoogleOAuth } from './presentation/hooks/useGoogleOAuth';
|
|
|
144
144
|
export type {
|
|
145
145
|
UseGoogleOAuthResult,
|
|
146
146
|
} from './presentation/hooks/useGoogleOAuth';
|
|
147
|
+
export type { GoogleOAuthConfig } from './infrastructure/services/google-oauth.service';
|
|
147
148
|
|
|
148
149
|
// Password Management
|
|
149
150
|
export {
|
|
@@ -42,7 +42,7 @@ class FirebaseAuthClientSingleton extends ServiceClientSingleton<Auth, FirebaseA
|
|
|
42
42
|
/**
|
|
43
43
|
* Initialize Auth with optional configuration
|
|
44
44
|
*/
|
|
45
|
-
initialize(config?: FirebaseAuthConfig): Auth | null {
|
|
45
|
+
override initialize(config?: FirebaseAuthConfig): Auth | null {
|
|
46
46
|
return super.initialize(config);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -17,7 +17,7 @@ import { ConfigurableService } from "../../../domain/utils/service-config.util";
|
|
|
17
17
|
* Provides Google Sign-In functionality for Firebase
|
|
18
18
|
*/
|
|
19
19
|
export class GoogleAuthService extends ConfigurableService<GoogleAuthConfig> {
|
|
20
|
-
protected isValidConfig(config: GoogleAuthConfig): boolean {
|
|
20
|
+
protected override isValidConfig(config: GoogleAuthConfig): boolean {
|
|
21
21
|
return (
|
|
22
22
|
config !== null &&
|
|
23
23
|
(!!config.webClientId || !!config.iosClientId || !!config.androidClientId)
|
|
@@ -31,8 +31,6 @@ export interface ServiceClientOptions<TInstance, TConfig = unknown> {
|
|
|
31
31
|
* Provides common initialization, state management, and error handling
|
|
32
32
|
*/
|
|
33
33
|
export class ServiceClientSingleton<TInstance, TConfig = unknown> {
|
|
34
|
-
private static instances = new Map<string, ServiceClientSingleton<unknown, unknown>>();
|
|
35
|
-
|
|
36
34
|
protected state: ServiceClientState<TInstance>;
|
|
37
35
|
private readonly options: ServiceClientOptions<TInstance, TConfig>;
|
|
38
36
|
|