You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(apple): validate appAccountToken UUID format before purchase
Add validation that throws a clear error when appAccountToken is not
a valid UUID format. Apple silently returns null for non-UUID values,
which makes debugging difficult. This change fails fast with a
descriptive error message to help developers identify the issue.
Closeshyochan/expo-iap#128
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
OpenIapLog.error("❌ Invalid appAccountToken format: '\(token)'. Must be a valid UUID (e.g., '550e8400-e29b-41d4-a716-446655440000')")
374
+
throwPurchaseError.make(
375
+
code:.developerError,
376
+
productId: props.sku,
377
+
message:"appAccountToken must be a valid UUID format (e.g., '550e8400-e29b-41d4-a716-446655440000'). Received: '\(token)'. Apple silently returns null for non-UUID values."
0 commit comments