From d54ba90304f2afd5502d5c4d615dcb55d2e15ede Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Wed, 4 Jun 2025 09:55:19 +0530 Subject: [PATCH] fix-wrong-url-on-auth-error (#21693) --- packages/features/auth/lib/next-auth-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts index 613d9baa4f..43de83ae20 100644 --- a/packages/features/auth/lib/next-auth-options.ts +++ b/packages/features/auth/lib/next-auth-options.ts @@ -973,7 +973,7 @@ export const getOptions = ({ return true; } } - return `auth/error?error=wrong-provider&provider=${existingUserWithEmail.identityProvider}`; + return `/auth/error?error=wrong-provider&provider=${existingUserWithEmail.identityProvider}`; } // Associate with organization if enabled by flag and idP is Google (for now)