We just released our app. 1 user reported this issue where they subscribed, but then see this error message:

I don’t know why this happens. Here is my flow inside Expo/React Native app:
- Wrap app in providers	1<PurchaseProvider setPurchasesChecked={setPurchasesChecked}>2 <AuthProvider>3 <Stack/>4 </AuthProvider>5</PurchaseProvider>
 - 	
Inside the
PurchaseProvidergetCustomerInfo:1useEffect(2 function initPurchaseConfig() {3 const initialize = async () => {4 try {5 Purchases.setLogLevel(Purchases.LOG_LEVEL.VERBOSE);6 await Purchases.configure({ apiKey: APIKEY });78 const info = await Purchases.getCustomerInfo();9 const { isActive } = info?.entitlements.active[entitlementName] || {};1011 setIsActive(!!isActive);12 } catch (e) {13 setMessage(['error', (e as Error).message]);14 } finally {15 setIsReady(true);16 setPurchasesChecked(true);17 }18 };1920 initialize();21 },22 [setMessage, setPurchasesChecked]23 );Note the
isActivevariable, which gets exported from Provider so that routes can be determined - We check if they are paywall eligible, and determine the route:	1if (paywallEligible) {2 if (isActive) {3 if (!hasUser) {4 return router.replace('signIn');5 }6 if (7 lastSegment === 'signIn' ||8 lastSegment === 'register' ||9 lastSegment === 'paywall'10 ) {11 return router.replace('(tabs)');12 }1314 if (hasUser) {15 return;16 }1718 return;19 }2021 return router.replace('paywall');22 }23 if (!hasUser) {24 return router.replace('signIn');25 }26 if (lastSegment === 'signIn') {27 return router.replace('(tabs)');28 }
In this case, if not
isActive, they will get redirect to paywall, which lets them purchase. - 	
After they purchase we also set
isActiveto true1const purchase = async (purchasePackage: PurchasesPackage) => {2 try {3 await Purchases.purchasePackage(purchasePackage);4 getInfo();5 setIsActive(true);6 return router.replace('');7 } catch (e) {8 if (9 (e as PurchasesError).code ===10 Purchases.PURCHASES_ERROR_CODE.PURCHASE_CANCELLED_ERROR11 ) {12 return;13 }1415 setMessage(['error', (e as Error).message]);16 }17 }; - When I exit the app & come back, I see the “You're currently subscribed to this.” message.
 
it’s hard to replicate. What could this be?

