diff --git a/packages/experience/src/hooks/use-check-single-sign-on.ts b/packages/experience/src/hooks/use-check-single-sign-on.ts index 9fa92fdbc..23b06e43f 100644 --- a/packages/experience/src/hooks/use-check-single-sign-on.ts +++ b/packages/experience/src/hooks/use-check-single-sign-on.ts @@ -46,7 +46,15 @@ const useCheckSingleSignOn = () => { const [error, result] = await request(email); if (error) { - await handleError(error); + // Show error message only if the user is trying to continue the single sign-on flow, otherwise, silently fail + if (continueSignIn) { + await handleError(error, { + 'guard.invalid_input': () => { + setErrorMessage(t('error.invalid_email')); + }, + }); + } + return; }