clerk-auth
Installation
SKILL.md
Clerk Authentication Patterns
Authentication integration patterns for Clerk with Next.js and Convex backends.
Core Concepts
Authentication Flow
- User authenticates via Clerk (sign-in/sign-up)
- Clerk issues session token (JWT)
- Frontend passes token to backend
- Backend verifies token and extracts user identity
Key Components
- Clerk Dashboard: User management, JWT templates, webhooks
- @clerk/nextjs: React hooks, middleware, components
- Convex auth:
ctx.auth.getUserIdentity()for backend verification
Next.js Setup
Related skills