Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs: add comment to /api/auth/signup

Marc Klingen7bc5719f9419
diff --git a/.env.prod.example b/.env.prod.example
index db63e1a0e5..191fa25801 100644
--- a/.env.prod.example
+++ b/.env.prod.example
@@ -43,4 +43,4 @@ AUTH_GOOGLE_CLIENT_SECRET=
AUTH_GITHUB_CLIENT_ID=
AUTH_GITHUB_CLIENT_SECRET=
# AUTH_DOMAINS_WITH_SSO_ENFORCEMENT=domain1.com,domain2.com
-# AUTH_DISABLE_USERNAME_PASSWORD="true"
+# AUTH_DISABLE_USERNAME_PASSWORD=true
diff --git a/src/pages/api/auth/signup.ts b/src/pages/api/auth/signup.ts
index 8b511f1cbc..16272d9276 100644
--- a/src/pages/api/auth/signup.ts
+++ b/src/pages/api/auth/signup.ts
@@ -3,6 +3,10 @@ import { createUserEmailPassword } from "@/src/features/auth/lib/emailPassword";
import { signupSchema } from "@/src/features/auth/lib/signupSchema";
import type { NextApiRequest, NextApiResponse } from "next";
+/*
+ * Sign-up endpoint (email/password users), creates user in database.
+ * SSO users are created by the NextAuth adapters.
+ */
export default async function handler(
req: NextApiRequest,
res: NextApiResponse,