← Back to Integrations
Clerk
freeClerk for auth: sign-in, sign-up, orgs, and webhooks.
Install
npx integrateapi add clerkFeatures
- Auth
- Organizations
- Webhooks
- SSO
Environment variables
| Variable | Description |
|---|---|
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY | Publishable key |
CLERK_SECRET_KEY | Secret key |
Example
import { auth } from "@clerk/nextjs/server"
const { userId } = await auth()