@umituz/react-native-auth 2.2.1 → 2.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-auth",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
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",
@@ -28,7 +28,10 @@ export class AuthConfigurationError extends AuthError {
28
28
  }
29
29
 
30
30
  export class AuthValidationError extends AuthError {
31
- constructor(message: string = "Validation failed") {
31
+ constructor(
32
+ message: string = "Validation failed",
33
+ public readonly field?: string,
34
+ ) {
32
35
  super(message, "AUTH_VALIDATION_ERROR");
33
36
  this.name = "AuthValidationError";
34
37
  }
@@ -20,7 +20,7 @@ export const LoginScreen: React.FC = () => {
20
20
  const navigation = useNavigation();
21
21
 
22
22
  const handleNavigateToRegister = () => {
23
- navigation.navigate("Register" as any);
23
+ navigation.navigate("Register" as never);
24
24
  };
25
25
 
26
26
  return (
@@ -32,7 +32,7 @@ export const RegisterScreen: React.FC<RegisterScreenProps> = ({
32
32
  const navigation = useNavigation();
33
33
 
34
34
  const handleNavigateToLogin = () => {
35
- navigation.navigate("Login" as any);
35
+ navigation.navigate("Login" as never);
36
36
  };
37
37
 
38
38
  return (