Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Auth for SaaS cookbooks

Sync B2B billing with Scalekit and Chargebee

B2B billing breaks when your auth org model and Chargebee customer records drift apart. This cookbook shows how to use the Scalekit organization ID as the billing reference, provision Chargebee customers on org creation, run hosted checkout, and reconcile subscription state from Chargebee webhooks.

M2M JWT verification with JWKS and OAuth scopes

Machine-to-machine access tokens are JWTs signed by Scalekit. Your API verifies signatures using the published JWKS at /keys, then authorizes requests using the scopes embedded in each token. This cookbook ties those ideas together end to end.

Enforce seat limits with SCIM provisioning

When your customer's identity provider pushes more users than your plan allows, SCIM won't stop it. This cookbook shows how to track provisioned users per organization, block creation when the quota is hit, and notify admins — using two webhook events and a counter in your database.