@umituz/react-native-auth 3.4.12 → 3.4.14

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": "3.4.12",
3
+ "version": "3.4.14",
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",
@@ -32,7 +32,6 @@
32
32
  "url": "git+https://github.com/umituz/react-native-auth.git"
33
33
  },
34
34
  "dependencies": {
35
- "@umituz/react-native-design-system": "latest",
36
35
  "@umituz/react-native-firebase": "latest",
37
36
  "@umituz/react-native-localization": "latest",
38
37
  "@umituz/react-native-storage": "latest",
@@ -69,7 +68,7 @@
69
68
  "@types/react": "~19.1.0",
70
69
  "@typescript-eslint/eslint-plugin": "^7.0.0",
71
70
  "@typescript-eslint/parser": "^7.0.0",
72
- "@umituz/react-native-design-system": "latest",
71
+ "@umituz/react-native-design-system": "^2.6.33",
73
72
  "@umituz/react-native-design-system-theme": "latest",
74
73
  "@umituz/react-native-firebase": "latest",
75
74
  "@umituz/react-native-haptics": "latest",
@@ -14,6 +14,7 @@ import { getFirebaseAuth } from "@umituz/react-native-firebase";
14
14
  import { initializeAuthService } from "./AuthService";
15
15
  import { configureUserDocumentService, ensureUserDocument } from "./UserDocumentService";
16
16
  import type { UserDocumentConfig } from "./UserDocumentService";
17
+ import { collectDeviceExtras } from "@umituz/react-native-design-system";
17
18
  import { initializeAuthListener } from "../../presentation/stores/initializeAuthListener";
18
19
  import type { AuthConfig } from "../../domain/value-objects/AuthConfig";
19
20
 
@@ -101,7 +102,8 @@ export async function initializeAuth(
101
102
  collectionName: userCollection,
102
103
  };
103
104
  if (extraFields) userDocConfig.extraFields = extraFields;
104
- if (collectExtras) userDocConfig.collectExtras = collectExtras;
105
+ // Use provided collectExtras or default to design system's implementation
106
+ userDocConfig.collectExtras = collectExtras || collectDeviceExtras;
105
107
 
106
108
  configureUserDocumentService(userDocConfig);
107
109
 
@@ -20,7 +20,7 @@ export const AuthFormCard: React.FC<AuthFormCardProps> = ({ children }) => {
20
20
  styles.formCard,
21
21
  {
22
22
  backgroundColor: tokens.colors.surface,
23
- borderRadius: tokens.radius.xl,
23
+ borderRadius: tokens.borders.radius.xl,
24
24
  padding: tokens.spacing.lg,
25
25
  },
26
26
  ]}
@@ -28,6 +28,7 @@ export function getAuthErrorLocalizationKey(error: unknown): string {
28
28
  AUTH_TOO_MANY_REQUESTS: "auth.errors.tooManyRequests",
29
29
  AUTH_USER_DISABLED: "auth.errors.userDisabled",
30
30
  AUTH_NOT_INITIALIZED: "auth.errors.authNotInitialized",
31
+ AUTH_INVALID_CREDENTIAL: "auth.errors.invalidCredential",
31
32
  };
32
33
 
33
34
  // Check error name for specific error types