Clerk sign-in and access checks for Next.js apps.
Guides implementation of Clerk authentication, route protection, organization access, and user synchronization.
When to use it
Use when the task involves authentication, sign-in, sign-up, user management, multi-tenancy, organizations, or single sign-on.
It changes how the agent implements Clerk authentication in a project, including centralized middleware and explicit route protection.
What you provide
The Next.js authentication patterns use Clerk's @clerk/nextjs package.
The setup supplies the Clerk publishable key through environment variables in .env.local, alongside CLERK_SECRET_KEY.
The Clerk secret key must be supplied through environment variables and used only server-side.
Routes database work to postgres-wizard for a user table with clerkId; whether installation is required is unstated.
No additional actions listed.