From 78ed48adebcc36f3a22723b0441bda1fdb547468 Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 20 Jul 2023 15:59:21 +0200 Subject: [PATCH] fix error messages --- apps/web/app/api/auth/[...nextauth]/authOptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/app/api/auth/[...nextauth]/authOptions.ts b/apps/web/app/api/auth/[...nextauth]/authOptions.ts index 660b169d8a..f4cd2fd730 100644 --- a/apps/web/app/api/auth/[...nextauth]/authOptions.ts +++ b/apps/web/app/api/auth/[...nextauth]/authOptions.ts @@ -240,7 +240,7 @@ export const authOptions: NextAuthOptions = { }); return true; } - return "/auth/error?error=email-conflict"; + return "/auth/login?error=Looks%20like%20you%20updated%20your%20email%20somewhere%20else.%0AA%20user%20with%20this%20new%20email%20exists%20already."; } // There is no existing account for this identity provider / account id @@ -251,7 +251,7 @@ export const authOptions: NextAuthOptions = { }); if (existingUserWithEmail) { - return "/auth/error?error=use-email-login"; + return "/auth/login?error=A%20user%20with%20this%20email%20exists%20already."; } await prisma.user.create({