@umituz/react-native-auth 3.4.35 → 3.4.37

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.4.35",
3
+ "version": "3.4.37",
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",
@@ -4,7 +4,7 @@ import { ValidationResult } from './types';
4
4
  * Validate required field (not null, undefined, or empty string)
5
5
  */
6
6
  export const validateRequired = (
7
- value: any,
7
+ value: unknown,
8
8
  fieldName: string = "Field",
9
9
  errorKey?: string
10
10
  ): ValidationResult => {
@@ -17,7 +17,7 @@ export const ProfileBenefitsList: React.FC<ProfileBenefitsListProps> = ({ benefi
17
17
  <View style={styles.benefitsContainer}>
18
18
  {benefits.map((benefit, index) => (
19
19
  <View key={index} style={styles.benefitItem}>
20
- <AtomicIcon name="check" size="sm" color="primary" />
20
+ <AtomicIcon name="Check" size="sm" color="primary" />
21
21
  <AtomicText
22
22
  type="bodyMedium"
23
23
  color="secondary"
@@ -17,6 +17,7 @@ export interface AccountScreenConfig {
17
17
  isAnonymous: boolean;
18
18
  editProfileText?: string;
19
19
  onEditProfile?: () => void;
20
+ onSignIn?: () => void;
20
21
  }
21
22
 
22
23
  export interface AccountScreenProps {
@@ -26,12 +27,6 @@ export interface AccountScreenProps {
26
27
  export const AccountScreen: React.FC<AccountScreenProps> = ({ config }) => {
27
28
  const tokens = useAppDesignTokens();
28
29
 
29
- const handleLogout = () => {
30
- if (config.accountActions?.onLogout) {
31
- void config.accountActions.onLogout();
32
- }
33
- };
34
-
35
30
  return (
36
31
  <ScreenLayout
37
32
  scrollable={true}
@@ -41,7 +36,7 @@ export const AccountScreen: React.FC<AccountScreenProps> = ({ config }) => {
41
36
  >
42
37
  <ProfileSection
43
38
  profile={config.profile}
44
- onSignIn={config.profile.isAnonymous ? handleLogout : undefined}
39
+ onSignIn={config.isAnonymous ? config.onSignIn : undefined}
45
40
  signInText="Sign In"
46
41
  />
47
42