Skip to main content
License variables let you attach per-user metadata to each license key. By setting a plan variable (and feature-specific limits), you can gate functionality in your application based on the customer’s subscription tier.

Architecture

Step 1: Define your tiers

Decide what each tier includes: This maps to license variables:

Step 2: Create licenses with tier variables

When a customer subscribes, create a license and set the variables:

Step 3: Read tier variables in the SDK

Step 4: Handle plan upgrades

When a customer upgrades (e.g., Basic → Pro), update their license variables:
The user picks up the new plan the next time they authenticate.

Stripe integration

Map Stripe price IDs to plan tiers:

Displaying tier info in the app

Show users what their plan includes and offer upgrade prompts:

Next steps