All blocks

Billing & commerce

Stripe entitlements

Active Stripe entitlements per tenant from the Stripe Sync Engine, feature_claims() for the access token hook, and has_entitlement() and tenant_ids_with_entitlement() for RLS.

DocsModes:managed
terminal
npx better-supabase sql add entitlements
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by entitlements; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      organizations: {},
      // Modes: "managed". The default is "managed".
      entitlements: { mode: "managed" },
    },
  },
});