@umituz/react-native-auth 1.3.0 → 1.3.1
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
package/src/index.ts
CHANGED
|
@@ -67,5 +67,10 @@ export type { UseAuthResult } from './presentation/hooks/useAuth';
|
|
|
67
67
|
export { LoginScreen } from './presentation/screens/LoginScreen';
|
|
68
68
|
export { RegisterScreen } from './presentation/screens/RegisterScreen';
|
|
69
69
|
export { AuthNavigator } from './presentation/navigation/AuthNavigator';
|
|
70
|
-
export type {
|
|
70
|
+
export type {
|
|
71
|
+
AuthStackParamList,
|
|
72
|
+
AuthNavigatorProps,
|
|
73
|
+
} from './presentation/navigation/AuthNavigator';
|
|
74
|
+
export { AuthLegalLinks } from './presentation/components/AuthLegalLinks';
|
|
75
|
+
export type { AuthLegalLinksProps } from './presentation/components/AuthLegalLinks';
|
|
71
76
|
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
} from "firebase/auth";
|
|
15
15
|
import type { IAuthService, SignUpParams, SignInParams } from "../../application/ports/IAuthService";
|
|
16
16
|
import {
|
|
17
|
+
AuthError,
|
|
17
18
|
AuthInitializationError,
|
|
18
19
|
AuthConfigurationError,
|
|
19
20
|
AuthValidationError,
|
|
@@ -84,6 +85,7 @@ function validatePassword(
|
|
|
84
85
|
* Map Firebase Auth errors to domain errors
|
|
85
86
|
*/
|
|
86
87
|
function mapFirebaseAuthError(error: any): Error {
|
|
88
|
+
// Extract error code and message
|
|
87
89
|
const code = error?.code || "";
|
|
88
90
|
const message = error?.message || "Authentication failed";
|
|
89
91
|
|