Loading...
Loading...
Use this skill when integrating a third-party auth provider (Clerk, Auth0, WorkOS, Kinde, Stytch) with InsForge for authentication and RLS. Covers JWT configuration, client setup, database RLS policies, and provider-specific gotchas for each supported integration.
npx skill4agent add insforge/agent-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 |
edgeFunctionTokencreateClient()request.jwt.claimsrequesting_user_id()edgeFunctionTokenrequesting_user_id()references/<provider>.mdTEXTuser_idrequesting_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 |