Loading...
Loading...
Compare original and translation side by side
| 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 |
| 提供商 | 指南 | 使用场景 |
|---|---|---|
| Clerk | Clerk JWT 模板 + InsForge RLS | Clerk通过JWT模板直接签署令牌——无需服务端签署 |
| Auth0 | Auth0 Actions + InsForge RLS | Auth0使用登录后Action将声明嵌入访问令牌 |
| WorkOS | WorkOS AuthKit + InsForge RLS | WorkOS AuthKit中间件 + 使用 |
| Kinde | Kinde + InsForge RLS | 针对InsForge集成的Kinde令牌自定义 |
| Stytch | Stytch + InsForge RLS | 用于InsForge集成的Stytch会话令牌 |
| 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 |
| 提供商 | 指南 | 使用场景 |
|---|---|---|
| OKX x402 | OKX 作为x402服务商(X Layer上的USDG) | 链上按使用付费的HTTP端点,付款方无需支付Gas费 |
edgeFunctionTokencreateClient()request.jwt.claimsrequesting_user_id()createClient()edgeFunctionTokenrequest.jwt.claimsrequesting_user_id()402 Payment RequiredPAYMENT-REQUIRED/verify/settle402 Payment RequiredPAYMENT-REQUIRED/verify/settlereferences/<provider>.mdreferences/<provider>.mdTEXTuser_idrequesting_user_id()auth.uid()edgeFunctionTokennpx @insforge/cli secrets get JWT_SECRETinsert(...)UNIQUEtx_hashnameversionDOMAIN_SEPARATORInvalid AuthorityMOCK_OKX_FACILITATORuser_idTEXTrequesting_user_id()auth.uid()edgeFunctionTokennpx @insforge/cli secrets get JWT_SECRETinsert(...)tx_hashUNIQUEnameversionDOMAIN_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 |
| 错误 | 解决方案 |
|---|---|
RLS中使用 | 使用 |
| 使用 |
| 硬编码JWT密钥 | 始终通过 |
缺少 | 必须先创建该函数,RLS策略才能生效 |
| 错误 | 解决方案 |
|---|---|
| 使用OKX交易所交易API密钥 | 在 |
| EIP-712域值错误 | 读取令牌合约的 |
| 忽略结算后的数据库插入错误 | 务必解构 |
生产环境中设置 | 模拟模式仅用于演示;它会返回虚假交易哈希并跳过验证 |