@umituz/react-native-auth 1.4.1 → 1.5.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 +1 -1
- package/src/presentation/components/AuthContainer.tsx +2 -0
- package/src/presentation/components/AuthDivider.tsx +2 -0
- package/src/presentation/components/AuthErrorDisplay.tsx +2 -0
- package/src/presentation/components/AuthFormCard.tsx +2 -0
- package/src/presentation/components/AuthGradientBackground.tsx +2 -0
- package/src/presentation/components/AuthHeader.tsx +2 -0
- package/src/presentation/components/AuthLegalLinks.tsx +2 -0
- package/src/presentation/components/AuthLink.tsx +2 -0
- package/src/presentation/components/LoginForm.tsx +2 -3
- package/src/presentation/components/RegisterForm.tsx +4 -5
- package/src/presentation/utils/getAuthErrorMessage.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-auth",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Authentication service for React Native apps - Secure, type-safe, and production-ready. Provider-agnostic design supports Firebase Auth and can be adapted for Supabase or other providers.",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -100,7 +100,7 @@ export const LoginForm: React.FC<LoginFormProps> = ({
|
|
|
100
100
|
placeholder={t("auth.emailPlaceholder")}
|
|
101
101
|
keyboardType="email-address"
|
|
102
102
|
autoCapitalize="none"
|
|
103
|
-
|
|
103
|
+
disabled={loading}
|
|
104
104
|
state={emailError ? "error" : "default"}
|
|
105
105
|
helperText={emailError || undefined}
|
|
106
106
|
/>
|
|
@@ -114,7 +114,7 @@ export const LoginForm: React.FC<LoginFormProps> = ({
|
|
|
114
114
|
placeholder={t("auth.passwordPlaceholder")}
|
|
115
115
|
secureTextEntry
|
|
116
116
|
autoCapitalize="none"
|
|
117
|
-
|
|
117
|
+
disabled={loading}
|
|
118
118
|
state={passwordError ? "error" : "default"}
|
|
119
119
|
helperText={passwordError || undefined}
|
|
120
120
|
/>
|
|
@@ -128,7 +128,6 @@ export const LoginForm: React.FC<LoginFormProps> = ({
|
|
|
128
128
|
onPress={handleSignIn}
|
|
129
129
|
disabled={loading || !email.trim() || !password.trim()}
|
|
130
130
|
fullWidth
|
|
131
|
-
loading={loading}
|
|
132
131
|
style={styles.signInButton}
|
|
133
132
|
>
|
|
134
133
|
{t("auth.signIn")}
|
|
@@ -141,7 +141,7 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
|
|
|
141
141
|
t("auth.displayNamePlaceholder") || "Enter your full name"
|
|
142
142
|
}
|
|
143
143
|
autoCapitalize="words"
|
|
144
|
-
|
|
144
|
+
disabled={loading}
|
|
145
145
|
state={fieldErrors.displayName ? "error" : "default"}
|
|
146
146
|
helperText={fieldErrors.displayName || undefined}
|
|
147
147
|
/>
|
|
@@ -155,7 +155,7 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
|
|
|
155
155
|
placeholder={t("auth.emailPlaceholder")}
|
|
156
156
|
keyboardType="email-address"
|
|
157
157
|
autoCapitalize="none"
|
|
158
|
-
|
|
158
|
+
disabled={loading}
|
|
159
159
|
state={fieldErrors.email ? "error" : "default"}
|
|
160
160
|
helperText={fieldErrors.email || undefined}
|
|
161
161
|
/>
|
|
@@ -169,7 +169,7 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
|
|
|
169
169
|
placeholder={t("auth.passwordPlaceholder")}
|
|
170
170
|
secureTextEntry
|
|
171
171
|
autoCapitalize="none"
|
|
172
|
-
|
|
172
|
+
disabled={loading}
|
|
173
173
|
state={fieldErrors.password ? "error" : "default"}
|
|
174
174
|
helperText={fieldErrors.password || undefined}
|
|
175
175
|
/>
|
|
@@ -185,7 +185,7 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
|
|
|
185
185
|
}
|
|
186
186
|
secureTextEntry
|
|
187
187
|
autoCapitalize="none"
|
|
188
|
-
|
|
188
|
+
disabled={loading}
|
|
189
189
|
state={fieldErrors.confirmPassword ? "error" : "default"}
|
|
190
190
|
helperText={fieldErrors.confirmPassword || undefined}
|
|
191
191
|
/>
|
|
@@ -204,7 +204,6 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
|
|
|
204
204
|
!confirmPassword.trim()
|
|
205
205
|
}
|
|
206
206
|
fullWidth
|
|
207
|
-
loading={loading}
|
|
208
207
|
style={styles.signUpButton}
|
|
209
208
|
>
|
|
210
209
|
{t("auth.signUp")}
|