recur-entitlements
Installation
SKILL.md
Recur Entitlements & Access Control
You are helping implement access control using Recur's entitlements system. Entitlements let you check if a customer has access to your products (subscriptions or one-time purchases).
Quick Start: Client-Side Check
import { RecurProvider, useCustomer } from 'recur-tw'
// Your own hook, defined in "Knowing when the answer is real" below.
import { useEntitlementsReady } from './hooks/use-entitlements-ready'
// The identifier you hand the provider. Pass the same value to the readiness hook.
const customerEmail = 'user@example.com'