@umituz/react-native-subscription 2.37.83 → 2.37.85

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-subscription",
3
- "version": "2.37.83",
3
+ "version": "2.37.85",
4
4
  "description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -59,15 +59,6 @@ export function configureServices(config: SubscriptionInitConfig, apiKey: string
59
59
  });
60
60
 
61
61
  configureAuthProvider({
62
- isAuthenticated: () => {
63
- const auth = getFirebaseAuth();
64
- if (!auth) {
65
- throw new Error("Firebase auth is not available");
66
- }
67
-
68
- const u = auth.currentUser;
69
- return !!(u && !u.isAnonymous);
70
- },
71
62
  hasFirebaseUser: () => {
72
63
  const auth = getFirebaseAuth();
73
64
  return !!(auth?.currentUser);
@@ -2,7 +2,6 @@ import type { PurchasesPackage } from "react-native-purchases";
2
2
  import type { PurchaseSource } from "../../core/SubscriptionConstants";
3
3
 
4
4
  export interface PurchaseAuthProvider {
5
- isAuthenticated: () => boolean;
6
5
  hasFirebaseUser: () => boolean;
7
6
  showAuthModal: () => void;
8
7
  }