clerk-auth - Clerk Authentication
Provides implementation patterns for Clerk authentication, middleware, organizations, webhooks, and user synchronization in Next.js.
Tags
Updated: 2026-10-07Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure Clerk authentication
- Set up Clerk middleware
- Protect application routes
- Read server auth state
- Use client auth hooks
- Manage organizations
- Implement webhook patterns
- Synchronize users
Inputs
- Next.js App Router project
- Clerk publishable key
- Clerk secret key
- Authentication route configuration
- Protected route patterns
- Organization roles and permissions
Outputs
- Authentication UI configuration
- Middleware configuration
- Protected route behavior
- Authenticated user data access
- Organization context access
- Webhook implementation guidance
- User synchronization guidance
Requirements
- Next.js 14 or 15 App Router
- @clerk/nextjs integration
- Configured Clerk middleware
- Clerk project credentials
