Skip to main content

Clerk Authentication

How Clerk powers user authentication and management

Clerk Authentication

The platform uses Clerk for secure, feature-rich user authentication.

How It Works

Clerk handles all authentication flows: sign-up, sign-in, password reset, email verification, and session management. The platform syncs user data from Clerk via webhooks.

Supported Auth Methods

  • Email & Password — Traditional email/password login
  • Social Login — Google, GitHub, and other OAuth providers
  • Magic Links — Passwordless login via email

Webhook Sync

When a user signs up or updates their profile in Clerk, a webhook (processed via Svix) syncs the data to the platform’s MongoDB database. This ensures user records are always up to date.

Configuration

Set up your Clerk application at clerk.com. Add the following environment variables:

  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
  • CLERK_SECRET_KEY
  • CLERK_WEBHOOK_SECRET (for Svix webhook verification)