What problem does it solve?
Sets up authentication for a Convex app with user management, identity mapping, and access control. Use this skill when adding login or signup to a Convex app, configuring Convex Auth, Clerk, WorkOS AuthKit, Auth0, or custom JWT providers, wiring auth.config.ts, protecting queries and mutations with ctx.auth.getUserIdentity(), creating a users table with identity mapping, or setting up role-based access control, even if the user just says "add auth" or "make it require login."
Core Features & Use Cases
- Determine the provider to use (Convex Auth, Clerk, WorkOS AuthKit, Auth0, or custom JWT)
- Wire backend and frontend so Convex can authenticate requests and gate protected UI
- Create or map a users identity model and implement access control rules as needed
- Use Case: Add login/signup to an existing Convex app and enforce role-based access with ctx.auth.getUserIdentity()
Quick Start
Choose an auth provider and wire Convex authentication by updating convex/auth.config.ts, creating or mapping a users table, and enabling ctx.auth.getUserIdentity() guards in backend queries and mutations.