Loading...
Loading...
Use this skill when integrating a third-party provider with InsForge — either an auth provider (Clerk, Auth0, WorkOS, Kinde, Stytch) for JWT-based RLS, or a payment facilitator (OKX x402) for onchain pay-per-use billing. Covers provider-specific dashboard setup, client/server code, database policies, and common gotchas for each supported integration.
npx skill4agent add insforge/insforge-skills insforge-integrations| 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 |
| Kinde | Kinde + InsForge RLS | Kinde token customization for InsForge integration |
| Stytch | Stytch + InsForge RLS | Stytch session tokens for InsForge integration |
| 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 |
edgeFunctionTokencreateClient()request.jwt.claimsrequesting_user_id()402 Payment RequiredPAYMENT-REQUIRED/verify/settlereferences/<provider>.mdTEXTuser_idrequesting_user_id()auth.uid()edgeFunctionTokennpx @insforge/cli secrets get JWT_SECRETinsert(...)UNIQUEtx_hashnameversionDOMAIN_SEPARATORInvalid AuthorityMOCK_OKX_FACILITATOR| Mistake | Solution |
|---|---|
Using | Use |
Using UUID columns for | Use |
| Hardcoding the JWT secret | Always retrieve via |
Missing | Must be created before RLS policies will work |
| Mistake | Solution |
|---|---|
| Using an OKX exchange trading API key | Create a separate Web3 API key at |
| Wrong EIP-712 domain values | Read the token contract's |
| Ignoring DB insert error after settlement | Always destructure |
| Mock mode is demo-only; it returns fake tx hashes and bypasses verification |