@umituz/react-native-auth 3.6.15 → 3.6.16

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.15",
3
+ "version": "3.6.16",
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",
@@ -95,19 +95,19 @@ export const ChangePasswordScreen: React.FC<ChangePasswordScreenProps> = ({
95
95
  Alert.alert(t("common.success"), t("auth.passwordChange.success"), [
96
96
  { text: "OK", onPress: onSuccess }
97
97
  ]);
98
- if (onSuccess) onSuccess();
99
98
  } else {
100
99
  setError(updateResult.error?.message || t("auth.passwordChange.error"));
101
100
  }
102
- } catch (e: any) {
103
- setError(e.message || t("auth.passwordChange.error"));
101
+ } catch (e: unknown) {
102
+ const errorMessage = e instanceof Error ? e.message : t("auth.passwordChange.error");
103
+ setError(errorMessage);
104
104
  } finally {
105
105
  setLoading(false);
106
106
  }
107
107
  };
108
108
 
109
109
  const RequirementsList = () => (
110
- <View style={styles.requirementsContainer}>
110
+ <View style={[styles.requirementsContainer, { backgroundColor: tokens.colors.surfaceSecondary }]}>
111
111
  <AtomicText type="labelMedium" style={{ color: tokens.colors.textSecondary, marginBottom: 8 }}>
112
112
  {t("auth.passwordChange.requirements")}
113
113
  </AtomicText>
@@ -200,7 +200,7 @@ export const ChangePasswordScreen: React.FC<ChangePasswordScreenProps> = ({
200
200
  />
201
201
  <AtomicButton
202
202
  title={loading ? t("auth.passwordChange.changing") : t("auth.passwordChange.changePassword")}
203
- onPress={handleChangePassword}
203
+ onPress={() => { void handleChangePassword(); }}
204
204
  loading={loading}
205
205
  disabled={!isValid || loading}
206
206
  style={{ flex: 1 }}
@@ -223,7 +223,6 @@ const styles = StyleSheet.create({
223
223
  marginTop: 8,
224
224
  padding: 12,
225
225
  borderRadius: 8,
226
- backgroundColor: "rgba(0,0,0,0.05)",
227
226
  },
228
227
  requirementItem: {
229
228
  flexDirection: "row",