productSlug option and an optional remote API check.
Usage
Parameters
Return Value
How Access Is Determined
By default this is a local check — no API call is made. The subscription data fetched byCrovverProvider on mount is used:
- No active subscription →
hasAccess: false - Feature not in
plan.features→hasAccess: false plan.features[featureKey] === true→hasAccess: true
checkRemote: true, the hook calls POST /api/public/can-access on every render cycle change, which supports productSlug scoping.