InsForge Integrations
This skill covers integrating
third-party providers
with InsForge. Currently two categories are supported:
auth providers
(RLS via JWT claims) and
payment facilitators
(x402 HTTP payment protocol). Each provider has its own guide under this directory.
Auth Providers
Provider
Guide
When to use
Clerk
Clerk JWT Templates + InsForge RLS
Clerk signs tokens directly via JWT Template — no server-side signing needed
Auth0
Auth0 Actions + InsForge RLS
Auth0 uses a post-login Action to embed claims into the access token
WorkOS
WorkOS AuthKit + InsForge RLS
WorkOS AuthKit middleware + server-side JWT signing with
jsonwebtoken
Kinde
Kinde + InsForge RLS
Kinde token customization for InsForge integration
Stytch
Stytch + InsForge RLS
Stytch session tokens for InsForge integration
Payment Facilitators
Provider
Guide
When to use
OKX x402
OKX as x402 facilitator (USDG on X Layer)
Pay-per-use HTTP endpoints settled onchain with zero gas for the payer
Common Patterns
Auth providers
Provider signs or issues a JWT
containing the user's ID
JWT is passed to InsForge
via
edgeFunctionToken
in
createClient()
InsForge extracts claims
via
request.jwt.claims
in SQL
RLS policies
use a
requesting_user_id()
function to enforce row-level security
Payment facilitators (x402)
Server returns
402 Payment Required
with a JSON challenge base64-encoded in
PAYMENT-REQUIRED
header
Client signs an EIP-3009 authorization
using the stablecoin's EIP-712 domain
Server forwards the signed payload
to the facilitator's
/verify
+
/settle
endpoints
Server records the settled payment
in an InsForge table with a realtime trigger for live dashboards
Choosing a Provider
Auth
Clerk
— Simplest setup; JWT Template handles signing, no server code needed
Auth0
— Flexible; uses post-login Actions for claim injection
WorkOS
— Enterprise-focused; AuthKit middleware + server-side JWT signing
Kinde
— Developer-friendly; built-in token customization
Stytch
— API-first; session-based token flow
Payment facilitators
OKX x402
— Onchain pay-per-use via USDG on X Layer; zero gas for the payer
Setup
Identify which provider the project uses
Read the corresponding reference guide from the tables above
Follow the provider-specific setup steps
Usage Examples
Each provider guide includes full code examples for:
Provider dashboard configuration (API keys, application settings, etc.)
Server and client code (JWT utilities for auth; facilitator client + signing utilities for payments)
Database setup (RLS for auth; payment table + realtime trigger for payments)
Environment variable setup
Refer to the specific
references/
insforge-integrations
安装
npx skills add https://github.com/insforge/agent-skills --skill insforge-integrations