Configuration

Configure Clerk authentication for Tossend.

Set the Clerk publishable key in the web application environment:

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_...

If the API expects a named Clerk JWT template, configure it as well:

NEXT_PUBLIC_CLERK_JWT_TEMPLATE=tossend

The application reads these values in components/clerk-provider-client.tsx and lib/tosend/tossend-fetch.ts.

Provider settings, email verification, password recovery, and multi-factor authentication are managed in the Clerk Dashboard. The Clerk sign-in component handles those flows without a separate database authentication client.