react-native-fpay 0.4.4 → 0.4.5
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
|
@@ -65,8 +65,8 @@ interface ProviderProps {
|
|
|
65
65
|
apiKey: string;
|
|
66
66
|
options?: FPSDKOptions;
|
|
67
67
|
children: ReactNode;
|
|
68
|
-
onAuthReady?: () => void;
|
|
69
|
-
onAuthError?: (error: string) => void;
|
|
68
|
+
onAuthReady?: () => void;
|
|
69
|
+
onAuthError?: (error: string) => void;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export function FountainPayProvider({
|
|
@@ -111,7 +111,7 @@ export function FountainPayProvider({
|
|
|
111
111
|
if (isTokenValid()) {
|
|
112
112
|
console.log('[FountainPay] Valid token found — skipping auth.');
|
|
113
113
|
setAuthenticated(true);
|
|
114
|
-
onAuthReady?.();
|
|
114
|
+
onAuthReady?.();
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -134,7 +134,7 @@ export function FountainPayProvider({
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
setAuthenticated(true);
|
|
137
|
-
onAuthReady?.();
|
|
137
|
+
onAuthReady?.();
|
|
138
138
|
} else {
|
|
139
139
|
console.error('[FountainPay] Auth failed:', response.message);
|
|
140
140
|
setAuthenticated(false, response.message);
|