@umituz/react-native-auth 3.6.1 → 3.6.3
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.6.
|
|
3
|
+
"version": "3.6.3",
|
|
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",
|
|
@@ -75,12 +75,14 @@ export const LoginForm: React.FC<LoginFormProps> = ({ onNavigateToRegister }) =>
|
|
|
75
75
|
secureTextEntry
|
|
76
76
|
showPasswordToggle
|
|
77
77
|
autoCapitalize="none"
|
|
78
|
+
autoCorrect={false}
|
|
78
79
|
disabled={loading}
|
|
79
80
|
state={passwordError ? "error" : "default"}
|
|
80
81
|
helperText={passwordError || undefined}
|
|
81
82
|
returnKeyType="done"
|
|
82
83
|
onSubmitEditing={() => { void handleSignIn(); }}
|
|
83
|
-
textContentType="
|
|
84
|
+
textContentType="oneTimeCode"
|
|
85
|
+
autoComplete="off"
|
|
84
86
|
style={styles.input}
|
|
85
87
|
/>
|
|
86
88
|
|
|
@@ -97,13 +97,15 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
|
|
|
97
97
|
secureTextEntry
|
|
98
98
|
showPasswordToggle
|
|
99
99
|
autoCapitalize="none"
|
|
100
|
+
autoCorrect={false}
|
|
100
101
|
disabled={loading}
|
|
101
102
|
state={fieldErrors.password ? "error" : "default"}
|
|
102
103
|
helperText={fieldErrors.password || undefined}
|
|
103
104
|
returnKeyType="next"
|
|
104
105
|
onSubmitEditing={() => confirmPasswordRef.current?.focus()}
|
|
105
106
|
blurOnSubmit={false}
|
|
106
|
-
textContentType="
|
|
107
|
+
textContentType="oneTimeCode"
|
|
108
|
+
autoComplete="off"
|
|
107
109
|
style={styles.input}
|
|
108
110
|
/>
|
|
109
111
|
{password.length > 0 && (
|
|
@@ -115,18 +117,18 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
|
|
|
115
117
|
label={t("auth.confirmPassword")}
|
|
116
118
|
value={confirmPassword}
|
|
117
119
|
onChangeText={handleConfirmPasswordChange}
|
|
118
|
-
placeholder={
|
|
119
|
-
t("auth.confirmPasswordPlaceholder")
|
|
120
|
-
}
|
|
120
|
+
placeholder={t("auth.confirmPasswordPlaceholder")}
|
|
121
121
|
secureTextEntry
|
|
122
122
|
showPasswordToggle
|
|
123
123
|
autoCapitalize="none"
|
|
124
|
+
autoCorrect={false}
|
|
124
125
|
disabled={loading}
|
|
125
126
|
state={fieldErrors.confirmPassword ? "error" : "default"}
|
|
126
127
|
helperText={fieldErrors.confirmPassword || undefined}
|
|
127
128
|
returnKeyType="done"
|
|
128
129
|
onSubmitEditing={() => { void handleSignUp(); }}
|
|
129
|
-
textContentType="
|
|
130
|
+
textContentType="oneTimeCode"
|
|
131
|
+
autoComplete="off"
|
|
130
132
|
style={styles.input}
|
|
131
133
|
/>
|
|
132
134
|
{confirmPassword.length > 0 && (
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { useAppNavigation, AtomicCard, ScreenLayout, useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
8
|
import { useLocalization } from "@umituz/react-native-localization";
|
|
9
|
-
import type { AuthStackParamList } from "../navigation/AuthNavigator";
|
|
10
9
|
import { AuthHeader } from "../components/AuthHeader";
|
|
11
10
|
import { LoginForm } from "../components/LoginForm";
|
|
12
11
|
|
|
13
12
|
export const LoginScreen: React.FC = () => {
|
|
14
13
|
const { t } = useLocalization();
|
|
15
|
-
const navigation = useAppNavigation
|
|
14
|
+
const navigation = useAppNavigation();
|
|
16
15
|
const tokens = useAppDesignTokens();
|
|
17
16
|
|
|
18
17
|
const handleNavigateToRegister = () => {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { useAppNavigation, AtomicCard, ScreenLayout, useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
8
|
import { useLocalization } from "@umituz/react-native-localization";
|
|
9
|
-
import type { AuthStackParamList } from "../navigation/AuthNavigator";
|
|
10
9
|
import { AuthHeader } from "../components/AuthHeader";
|
|
11
10
|
import { RegisterForm } from "../components/RegisterForm";
|
|
12
11
|
|
|
@@ -24,7 +23,7 @@ export const RegisterScreen: React.FC<RegisterScreenProps> = ({
|
|
|
24
23
|
onPrivacyPress,
|
|
25
24
|
}) => {
|
|
26
25
|
const { t } = useLocalization();
|
|
27
|
-
const navigation = useAppNavigation
|
|
26
|
+
const navigation = useAppNavigation();
|
|
28
27
|
const tokens = useAppDesignTokens();
|
|
29
28
|
|
|
30
29
|
const handleNavigateToLogin = () => {
|