recur-entitlements

Gate features with Recur entitlements across FastAPI and React.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/flsteven87/three_kingdoms_strategy --skill recur-entitlements
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recur-entitlements
Source: https://github.com/flsteven87/three_kingdoms_strategy/tree/main/.agents/skills/recur-entitlements
Command: npx skills add https://github.com/flsteven87/three_kingdoms_strategy --skill recur-entitlements

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables developers to implement robust access control by integrating Recur entitlements to gate features and content based on customer subscriptions or purchases.

Core Features & Use Cases

  • Client-side checks to determine UI visibility based on entitlements.
  • Server-side validation to enforce access via REST APIs (FastAPI) using entitlements data.
  • Supports gating paywalls, premium features, and license-based access across a FastAPI + React stack.
  • Example use case: restrict a premium dashboard to users with an active entitlements record and recommended grace handling.

Quick Start

Configure the Recur provider in your React app and validate entitlements on the FastAPI backend to gate premium features.

Frequently Asked Questions about recur-entitlements

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement subscription-based access control in a FastAPI and React stack?

Subscription-based access control in a FastAPI and React stack is implemented by validating Recur entitlements via email or externalId to return a boolean. This gates premium UI components and restricts backend API checks.

How do I enforce a paywall on premium features using entitlements?

To enforce a paywall on premium features using entitlements, you apply client-side checks for UI visibility and server-side validation via REST APIs. This ensures only users with active entitlement records bypass the paywall.

What is the best way to gate content based on user purchases in a web application?

Gating content based on user purchases is best handled by validating entitlements across both client-side UI and backend API checks. This returns a clear allowed boolean with entitlement details to manage premium access securely.

Can I validate entitlements using both email and externalId?

Yes, you can validate entitlements using either an email address or an externalId. This validation returns a clear allowed boolean alongside entitlement details to determine access to gated features.

How do I handle API access control for licensed features in FastAPI?

API access control for licensed features in FastAPI is handled by enforcing server-side validation of entitlements data. This restricts access via REST APIs to ensure only users with active subscription records can query premium endpoints.