Skip to main content

checkEntitlement

Check if a customer has access to a specific feature. Use this in API routes to enforce feature gates server-side.

Parameters

Response

Example: API middleware

Always enforce entitlements server-side for security-critical features. Client-side FeatureGate components improve UX but can be bypassed by determined users.