Show helpful error message for Discord email mismatch

cgen-c16fcef1fb7b4861aafe135456edb293
This commit is contained in:
Builder.io 2025-11-10 22:18:48 +00:00
parent 4061b52553
commit 8584784250

View file

@ -96,6 +96,11 @@ export default function Login() {
title: "Authentication Error",
description: errorMessage,
});
} else if (errorType === "discord_no_match") {
toastError({
title: "Discord Email Not Found",
description: decodeURIComponent(errorMessage) || "Your Discord email doesn't match any existing AeThex account. Please sign in with your email first.",
});
}
}
}, [location.search, toastError]);