@umituz/react-native-auth 3.6.75 → 3.6.76

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.75",
3
+ "version": "3.6.76",
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",
@@ -93,7 +93,9 @@
93
93
  "react-native-safe-area-context": "^5.6.2",
94
94
  "react-native-svg": "^15.15.1",
95
95
  "typescript": "^5.3.0",
96
- "zustand": "^4.0.0"
96
+ "zustand": "^4.0.0",
97
+ "@react-native-community/datetimepicker": "^8.2.0",
98
+ "rn-emoji-keyboard": "^1.7.0"
97
99
  },
98
100
  "publishConfig": {
99
101
  "access": "public"
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import { useCallback } from "react";
7
- import type { MutationFunction } from "@tanstack/react-query";
8
7
 
9
8
  export interface AuthOperationOptions {
10
9
  setLoading: (loading: boolean) => void;
@@ -16,7 +15,7 @@ export interface AuthOperationOptions {
16
15
  * Create an auth operation wrapper with consistent error handling
17
16
  */
18
17
  export function createAuthOperation<T>(
19
- mutation: MutationFunction<unknown, T>,
18
+ mutation: (params: T) => Promise<unknown>,
20
19
  options: AuthOperationOptions
21
20
  ) {
22
21
  const { setLoading, setError, onSuccess } = options;
@@ -26,7 +25,7 @@ export function createAuthOperation<T>(
26
25
  try {
27
26
  setLoading(true);
28
27
  setError(null);
29
- await mutation.mutateAsync(params);
28
+ await mutation(params);
30
29
  onSuccess?.();
31
30
  } catch (err: unknown) {
32
31
  const errorMessage = err instanceof Error ? err.message : "Operation failed";
@@ -44,7 +43,7 @@ export function createAuthOperation<T>(
44
43
  * Create auth operation that doesn't throw on failure
45
44
  */
46
45
  export function createSilentAuthOperation<T>(
47
- mutation: MutationFunction<unknown, T>,
46
+ mutation: (params: T) => Promise<unknown>,
48
47
  options: AuthOperationOptions
49
48
  ) {
50
49
  const { setLoading, setError, onSuccess } = options;
@@ -54,7 +53,7 @@ export function createSilentAuthOperation<T>(
54
53
  try {
55
54
  setLoading(true);
56
55
  setError(null);
57
- await mutation.mutateAsync(params);
56
+ await mutation(params as T);
58
57
  onSuccess?.();
59
58
  } catch {
60
59
  // Silently fail