Is there any way using the v1 (or v2) API to check more directly whether an entitlement is active?
The SDK has something like
if !customerInfo!.entitlements.active.isEmpty
but it seems like the API just returns something like:
"entitlements" : { "premium" : { "expires_date" : "2024-04-23T14:43:37Z", "grace_period_expires_date" : null, "product_identifier" : "monthly", "purchase_date" : "2024-04-23T14:38:37Z" }
when hitting the GET /subscriber endpoint.
This means I have to check the expires_date against Date.now() or something like that which feels clunky rather than having the attribute calculated directly on the API.