
KiranN.77696 (Customer) asked a question.
How do I change the error message for the cases where the user hasn't registered on the platform and try to do a login.
Currently it gives me a message saying There is no account with the Username xyz. I want to change the messaging to something else how do I achieve that?
I am using okta-signin-widget for login.

Are you using the embedded widget or the one using redirection? We use redirection and the login does not tell when an account does not exist per Okta's default security practices rather it allows any username to be entered and then when the password is entered it returns "Unable to sign in". So for an account that does not exist it returns the same as it would for an account that existed but the user entered the wrong password. Again this is a security practice/feature that Okta implements that from what I understand cannot be changed.
Here is a link to the Okta Knowledge Based article where this is discussed.
https://support.okta.com/help/s/article/Why-does-login-page-print-Password-is-incorrect-even-when-user-does-not-exist-in-Okta?language=en_US