diff --git a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignInForm.tsx b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignInForm.tsx index 183cca091..fccd63813 100644 --- a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignInForm.tsx +++ b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignInForm.tsx @@ -5,7 +5,10 @@ import FormField from '@/components/FormField'; import type { SignInExperienceForm } from '../../types'; import SignInMethodEditBox from './components/SignInMethodEditBox'; -import { signUpToSignInIdentifierMapping } from './constants'; +import { + signUpIdentifierToRequiredConnectorMapping, + signUpToSignInIdentifierMapping, +} from './constants'; import * as styles from './index.module.scss'; const SignInForm = () => { @@ -41,6 +44,9 @@ const SignInForm = () => { void; requiredSignInIdentifiers: SignInIdentifier[]; + ignoredWarningConnectors: ConnectorType[]; isSignUpPasswordRequired: boolean; isSignUpVerificationRequired: boolean; }; @@ -31,6 +32,7 @@ const SignInMethodEditBox = ({ value, onChange, requiredSignInIdentifiers, + ignoredWarningConnectors, isSignUpPasswordRequired, isSignUpVerificationRequired, }: Props) => { @@ -153,12 +155,11 @@ const SignInMethodEditBox = ({ ))} ( - (connectors, { identifier: signInIdentifier }) => { + requiredConnectors={value + .reduce((connectors, { identifier: signInIdentifier }) => { return [...connectors, ...signInIdentifierToRequiredConnectorMapping[signInIdentifier]]; - }, - [] - )} + }, []) + .filter((connector) => !ignoredWarningConnectors.includes(connector))} />