Entity Auth

Environment & Config

Required environment variables and configuration

Environment & Config

Set the following in your deployment environment.

NEXT_PUBLIC_CONVEX_URL

URL of your Convex deployment used by realtime subscriptions.

JWT_SECRET

HS256 secret for issuing short‑lived access tokens in API routes.

Optional headers

The SDKs attach device metadata automatically; you can also send:

  • x-device-name
  • x-app-version

These are used only for device upsert and audit context.