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会话令牌 |
edgeFunctionTokencreateClient()request.jwt.claimsrequesting_user_id()createClient()edgeFunctionTokenrequest.jwt.claimsrequesting_user_id()edgeFunctionTokenrequesting_user_id()references/<provider>.mdedgeFunctionTokenrequesting_user_id()references/<provider>.mdTEXTuser_idrequesting_user_id()auth.uid()edgeFunctionTokennpx @insforge/cli secrets get JWT_SECRETuser_idTEXTrequesting_user_id()auth.uid()edgeFunctionTokennpx @insforge/cli secrets get JWT_SECRET| 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 |
| 错误操作 | 解决方案 |
|---|---|
RLS中使用 | 使用 |
| 使用 |
| 硬编码JWT密钥 | 始终通过 |
未创建 | 必须先创建该函数,RLS策略才能正常工作 |