Skip to content

Scheduling infrastructure for absolutely everyone.

fix-wrong-url-on-auth-error (#21693)

Hariom Balharad54ba90304f2
diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts
index 613d9baa4f4..43de83ae20f 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)