Skip to content

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

chore: improve auth error message (#6773)

Marc Klingenb37396893a00
diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsx
index 2227779a91..a206c7a6c4 100644
--- a/web/src/pages/auth/sign-in.tsx
+++ b/web/src/pages/auth/sign-in.tsx
@@ -389,7 +389,7 @@ const signInErrors = [
{
code: "OAuthAccountNotLinked",
description:
- "Please sign in with the same provider that you used to create this account.",
+ "Please sign in with the same provider (e.g. Google, GitHub, Azure AD, etc.) that you used to create this account.",
},
];
diff --git a/web/src/server/auth.ts b/web/src/server/auth.ts
index 860581eb0a..70a0ea774f 100644
--- a/web/src/server/auth.ts
+++ b/web/src/server/auth.ts
@@ -138,7 +138,7 @@ const staticProviders: Provider[] = [
if (!dbUser) throw new Error("Invalid credentials");
if (dbUser.password === null)
throw new Error(
- "Please sign in with the identity provider that is linked to your account.",
+ "Please sign in with the identity provider (e.g. Google, GitHub, Azure AD, etc.) that is linked to your account.",
);
const isValidPassword = await verifyPassword(