@repo/auth handles sign-in, sign-up, session management, and route protection through Clerk.
Usage
Check the session in server components:apps/app/page.tsx
Route Protection
Lock down routes in middleware:apps/app/middleware.ts
User Sync
Clerk webhooks sync user data to Convex. When a user signs up, updates their profile, or deletes their account, Clerk posts to your Convex HTTP endpoint at/webhooks/clerk. The handler validates the webhook signature and upserts or removes the user record.
This gives your Convex queries direct access to user data without extra API calls to Clerk. See the Convex Provider page for the full setup guide.