Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Saif

6 posts by Saif

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.

Search Scalekit docs with ref.tools

Switching to a browser to look up Scalekit docs breaks your coding flow. This cookbook shows you how to configure the ref.tools MCP server so your AI coding assistant can search Scalekit documentation inline — in Cursor, Claude Code, Windsurf, or any MCP-compatible client.

Add Enterprise SSO to Next.js with Auth.js

Every enterprise customer wants their own IdP — Okta, Azure AD, Google Workspace. Handling SAML handshakes and per-tenant routing before you've shipped a feature is exhausting. This cookbook shows how to delegate that complexity to Scalekit and use Auth.js to own the session layer, so enterprise SSO is an afternoon, not a sprint.